From c066d8977335f024b130d12f754fffc8604d1538 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 11 May 2021 21:27:23 +0200 Subject: Mark Formatter as provided, remove dependency on Arc. Change-Id: Ia5faeefbaf541381e44c53f621d0c08ae28ec2ad --- deployment/pom.xml | 2 +- runtime/pom.xml | 2 +- .../java/eu/mulk/quarkus/googlecloud/jsonlogging/Formatter.java | 2 +- runtime/src/main/java/module-info.java | 7 +++++++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/deployment/pom.xml b/deployment/pom.xml index d468ada..7978272 100644 --- a/deployment/pom.xml +++ b/deployment/pom.xml @@ -15,7 +15,7 @@ io.quarkus - quarkus-arc-deployment + quarkus-core-deployment io.quarkus diff --git a/runtime/pom.xml b/runtime/pom.xml index 8b6616b..f0f502a 100644 --- a/runtime/pom.xml +++ b/runtime/pom.xml @@ -15,7 +15,7 @@ io.quarkus - quarkus-arc + quarkus-core io.quarkus diff --git a/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/Formatter.java b/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/Formatter.java index d6eeb0e..0c691b7 100644 --- a/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/Formatter.java +++ b/runtime/src/main/java/eu/mulk/quarkus/googlecloud/jsonlogging/Formatter.java @@ -17,7 +17,7 @@ import org.jboss.logmanager.ExtLogRecord; * * @see LogEntry */ -class Formatter extends ExtFormatter { +public class Formatter extends ExtFormatter { private static final String TRACE_LEVEL = "TRACE"; private static final String DEBUG_LEVEL = "DEBUG"; diff --git a/runtime/src/main/java/module-info.java b/runtime/src/main/java/module-info.java index 56b44fc..a78ae6e 100644 --- a/runtime/src/main/java/module-info.java +++ b/runtime/src/main/java/module-info.java @@ -1,3 +1,5 @@ +import eu.mulk.quarkus.googlecloud.jsonlogging.Formatter; + module quarkus.googlecloud.jsonlogging { requires java.logging; requires java.json; @@ -6,4 +8,9 @@ module quarkus.googlecloud.jsonlogging { requires smallrye.common.constraint; exports eu.mulk.quarkus.googlecloud.jsonlogging; + + provides java.util.logging.Formatter with + Formatter; + provides org.jboss.logmanager.ExtFormatter with + Formatter; } -- cgit v1.2.3