From b6608f84f01abd78181b8c3b7d6d90cd615e0972 Mon Sep 17 00:00:00 2001 From: Rebeca Gallardo Date: Mon, 22 Jan 2024 14:34:43 -0800 Subject: [PATCH] Dependency version updates The versions used here are not the newest available, but they have been validated to work by usage in internal Netflix applications. --- build.gradle | 12 ++++++------ src/test/java/com/netflix/blitz4j/TestBlitz4j.java | 7 +++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index d15bafb..da92a3d 100644 --- a/build.gradle +++ b/build.gradle @@ -26,13 +26,13 @@ repositories { } dependencies { - implementation 'com.netflix.servo:servo-core:0.4.49' - implementation 'com.netflix.archaius:archaius-core:0.7.8' - implementation 'org.slf4j:slf4j-api:1.7.3' - implementation 'log4j:log4j:1.2.17' + implementation 'com.netflix.servo:servo-core:0.13.2' + implementation 'com.netflix.archaius:archaius-core:0.7.10' + implementation 'org.slf4j:slf4j-api:1.7.36' + implementation 'ch.qos.reload4j:reload4j:1.2.25' implementation 'commons-collections:commons-collections:3.2.2' - implementation 'commons-configuration:commons-configuration:1.8' + implementation 'commons-configuration:commons-configuration:1.10' testImplementation 'junit:junit:4.13.1' - testImplementation 'org.slf4j:slf4j-log4j12:1.7.3' + testImplementation 'org.slf4j:slf4j-reload4j:1.7.36' } diff --git a/src/test/java/com/netflix/blitz4j/TestBlitz4j.java b/src/test/java/com/netflix/blitz4j/TestBlitz4j.java index 68be883..09e9625 100644 --- a/src/test/java/com/netflix/blitz4j/TestBlitz4j.java +++ b/src/test/java/com/netflix/blitz4j/TestBlitz4j.java @@ -22,6 +22,7 @@ import org.junit.After; import org.junit.Assert; +import org.junit.BeforeClass; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -38,6 +39,12 @@ public class TestBlitz4j { private static final String consoleSummarizeEvent = "stdout_summarizeEvent"; private static final String consoleEventsProcessed = "stdout_putInBuffer"; + @BeforeClass + public static void setUp() { + // Starting with servo 0.13.x the default registry is a NoOp, but we rely on having a real one because we use collected metrics to validate behavior + System.setProperty("com.netflix.servo.DefaultMonitorRegistry.registryClass", "com.netflix.servo.jmx.JmxMonitorRegistry"); + } + @After public void tearDown() throws Exception { props.clear();