From 435d1e2ac047df95f4bc3155b9f870cefc0b3312 Mon Sep 17 00:00:00 2001 From: dotasek Date: Thu, 2 Jan 2025 12:25:46 -0500 Subject: [PATCH 1/2] Bump core to 6.5.3-SNAPSHOT (#1013) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aee29774f..5593ba3f3 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ pom - 6.5.2 + 6.5.3-SNAPSHOT 3.0.0-M5 5.2.1 1.18.32 From 7d570b115197f54d0ed2de7bcb3e36a9368afb18 Mon Sep 17 00:00:00 2001 From: dotasek Date: Fri, 3 Jan 2025 13:10:33 -0500 Subject: [PATCH 2/2] Bump logback to 1.5.15 (#1014) * Bump logback to 1.5.15 * Bump version again * Fix logback config, stop building JavaDoc for whole jar. * Remove unneeded Placeholder, fix ERROR for missing log4j2 impl * Comments --- org.hl7.fhir.publisher.cli/pom.xml | 27 +++++++++++++++++-- .../src/main/java/Placeholder.java | 8 ------ .../src/main/resources/logback.xml | 7 +++-- .../hl7/fhir/igtools/publisher/Publisher.java | 6 ++++- .../resources/log4j2.component.properties | 4 +++ .../src/main/resources/logback.xml | 6 +++-- pom.xml | 2 +- 7 files changed, 44 insertions(+), 16 deletions(-) delete mode 100644 org.hl7.fhir.publisher.cli/src/main/java/Placeholder.java create mode 100644 org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties diff --git a/org.hl7.fhir.publisher.cli/pom.xml b/org.hl7.fhir.publisher.cli/pom.xml index f53b76ecc..cfe87e69d 100644 --- a/org.hl7.fhir.publisher.cli/pom.xml +++ b/org.hl7.fhir.publisher.cli/pom.xml @@ -12,8 +12,6 @@ org.hl7.fhir.publisher.cli - - org.hl7.fhir.publisher @@ -124,6 +122,31 @@ + + + + empty-javadoc-jar + package + + jar + + + javadoc + ${basedir}/javadoc + + + + + + maven-javadoc-plugin + + true + org.codehaus.mojo diff --git a/org.hl7.fhir.publisher.cli/src/main/java/Placeholder.java b/org.hl7.fhir.publisher.cli/src/main/java/Placeholder.java deleted file mode 100644 index a29de2bc1..000000000 --- a/org.hl7.fhir.publisher.cli/src/main/java/Placeholder.java +++ /dev/null @@ -1,8 +0,0 @@ -import org.hl7.fhir.utilities.Utilities; - -/** - * This class is just a placeholder to force the source JAR and javadoc JAR - * to be created so that Maven Central doesn't complain. - */ -public class Placeholder { -} diff --git a/org.hl7.fhir.publisher.cli/src/main/resources/logback.xml b/org.hl7.fhir.publisher.cli/src/main/resources/logback.xml index 1c8de9da3..83e50b7fe 100644 --- a/org.hl7.fhir.publisher.cli/src/main/resources/logback.xml +++ b/org.hl7.fhir.publisher.cli/src/main/resources/logback.xml @@ -1,5 +1,6 @@ - - + + + INFO @@ -13,4 +14,6 @@ + + \ No newline at end of file diff --git a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java index b87fb9efb..b95390ee9 100644 --- a/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java +++ b/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java @@ -13905,8 +13905,12 @@ public static String buildReport(String ig, String source, String log, String qa public static void main(String[] args) throws Exception { int exitCode = 0; + // Prevents SLF4J(I) from printing unnecessary info to the console. + System.setProperty("slf4j.internal.verbosity", "WARN"); + org.hl7.fhir.utilities.FileFormat.checkCharsetAndWarnIfNotUTF8(System.out); - NpmPackage.setLoadCustomResources(true); + + NpmPackage.setLoadCustomResources(true); if (CliParams.hasNamedParam(args, FHIR_SETTINGS_PARAM)) { FhirSettings.setExplicitFilePath(CliParams.getNamedParam(args, FHIR_SETTINGS_PARAM)); } diff --git a/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties b/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties new file mode 100644 index 000000000..51eb50a73 --- /dev/null +++ b/org.hl7.fhir.publisher.core/src/main/resources/log4j2.component.properties @@ -0,0 +1,4 @@ +# This forces log4j2 to use the included simple logger. One of our dependencies is using log4j2 for logging +# (no idea which one) instead of slf4j, and complains when log4j2 is unavailable. This prevents that complaint from +# appearing. +log4j2.loggerContextFactory = org.apache.logging.log4j.simple.SimpleLoggerContextFactory \ No newline at end of file diff --git a/org.hl7.fhir.publisher.core/src/main/resources/logback.xml b/org.hl7.fhir.publisher.core/src/main/resources/logback.xml index 1c8de9da3..0c5bc3c28 100644 --- a/org.hl7.fhir.publisher.core/src/main/resources/logback.xml +++ b/org.hl7.fhir.publisher.core/src/main/resources/logback.xml @@ -1,5 +1,5 @@ - - + + INFO @@ -13,4 +13,6 @@ + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 5593ba3f3..53f638513 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ 11 11 11 - 1.2.13 + 1.5.15 HL7 FHIR IG Publisher