From 16ddfef0e78ac4e8113d7e81e32e2f69098d5490 Mon Sep 17 00:00:00 2001 From: Sigmund Marius Nilssen Date: Thu, 28 Nov 2024 16:21:57 +0100 Subject: [PATCH] Use extra for version control of logstash-logback-encoder --- build.gradle.kts | 2 +- versions.gradle.kts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index e49fb73..90ff419 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -134,7 +134,7 @@ kotlin { implementation("org.apache.logging.log4j:log4j-slf4j2-impl:${extra["log4j_version"]}") implementation("org.slf4j:slf4j-api:${extra["slf4j_version"]}") implementation("ch.qos.logback:logback-classic:${extra["logback_version"]}") - implementation("net.logstash.logback:logstash-logback-encoder:8.0") + implementation("net.logstash.logback:logstash-logback-encoder:${extra["logstash_logback_encoder_version"]}") // our jul test just forward the logs jul -> slf4j -> log4j implementation("org.slf4j:jul-to-slf4j:${extra["slf4j_version"]}") diff --git a/versions.gradle.kts b/versions.gradle.kts index 174d96a..677baa0 100644 --- a/versions.gradle.kts +++ b/versions.gradle.kts @@ -4,3 +4,4 @@ extra["log4j_version"] = "2.22.0" extra["mockito_version"] = "4.11.0" extra["junit_version"] = "5.9.2" extra["logback_version"] = "1.5.11" +extra["logstash_logback_encoder_version"] = "8.0"