From b8fbc37809dac5102292e6aa83668e149ed27102 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 11 May 2021 06:50:45 +0200 Subject: Restructure, rename, modularize. Change-Id: I4aa6cfb486fe002cf65405ec9c2876e3114aaf46 --- deployment/pom.xml | 10 +++------ .../deployment/GoogleCloudLoggingProcessor.java | 24 ++++++++++++++++++++++ .../jsonlogging/GoogleCloudLoggingProcessor.java | 23 --------------------- 3 files changed, 27 insertions(+), 30 deletions(-) create mode 100644 deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java delete mode 100644 deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java (limited to 'deployment') diff --git a/deployment/pom.xml b/deployment/pom.xml index 5d34a10..d468ada 100644 --- a/deployment/pom.xml +++ b/deployment/pom.xml @@ -5,7 +5,7 @@ 4.0.0 - eu.mulk.quarkus-observability + eu.mulk.quarkus-googlecloud-jsonlogging quarkus-googlecloud-jsonlogging-parent 1.0.0-SNAPSHOT @@ -19,14 +19,10 @@ io.quarkus - quarkus-jsonb-deployment + quarkus-jsonp-deployment - io.quarkus - quarkus-jsonb-spi - - - eu.mulk.quarkus-observability + eu.mulk.quarkus-googlecloud-jsonlogging quarkus-googlecloud-jsonlogging ${project.version} diff --git a/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java b/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java new file mode 100644 index 0000000..aea89b9 --- /dev/null +++ b/deployment/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/deployment/GoogleCloudLoggingProcessor.java @@ -0,0 +1,24 @@ +package eu.mulk.quarkus.googlecloud.jsonlogging.deployment; + +import eu.mulk.quarkus.googlecloud.jsonlogging.GoogleCloudJsonLoggingRecorder; +import io.quarkus.deployment.annotations.BuildStep; +import io.quarkus.deployment.annotations.ExecutionTime; +import io.quarkus.deployment.annotations.Record; +import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.LogConsoleFormatBuildItem; + +class GoogleCloudLoggingProcessor { + + private static final String FEATURE = "googlecloud-jsonlogging"; + + @BuildStep + FeatureBuildItem feature() { + return new FeatureBuildItem(FEATURE); + } + + @BuildStep + @Record(ExecutionTime.RUNTIME_INIT) + LogConsoleFormatBuildItem setUpFormatter(GoogleCloudJsonLoggingRecorder recorder) { + return new LogConsoleFormatBuildItem(recorder.initialize()); + } +} diff --git a/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java b/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java deleted file mode 100644 index 8ecf000..0000000 --- a/deployment/src/main/java/eu/mulk/quarkus/observability/googlecloud/jsonlogging/GoogleCloudLoggingProcessor.java +++ /dev/null @@ -1,23 +0,0 @@ -package eu.mulk.quarkus.observability.googlecloud.jsonlogging; - -import io.quarkus.deployment.annotations.BuildStep; -import io.quarkus.deployment.annotations.ExecutionTime; -import io.quarkus.deployment.annotations.Record; -import io.quarkus.deployment.builditem.FeatureBuildItem; -import io.quarkus.deployment.builditem.LogConsoleFormatBuildItem; - -class GoogleCloudLoggingProcessor { - - private static final String FEATURE = "googlecloud-jsonlogging"; - - @BuildStep - FeatureBuildItem feature() { - return new FeatureBuildItem(FEATURE); - } - - @BuildStep - @Record(ExecutionTime.RUNTIME_INIT) - LogConsoleFormatBuildItem setUpFormatter(GoogleCloudLoggingRecorder recorder) { - return new LogConsoleFormatBuildItem(recorder.initialize()); - } -} -- cgit v1.2.3