Skip to content

Commit

Permalink
Upgrade sample to logback 1.5.3
Browse files Browse the repository at this point in the history
We do not want to upgrade the version of logback we compile against but we want to upgrade the version we test against for compatibility with the latest.

Closes micrometer-metricsgh-4842
  • Loading branch information
shakuzen committed Mar 7, 2024
1 parent ab7b79c commit b22be11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ kafka = "2.8.2"
kafka-junit = "4.2.10"
latency-utils = "2.0.3"
logback12 = "1.2.13"
logback-latest = "1.5.3"
log4j = "2.22.1"
maven-resolver = "1.9.18"
mockito = "5.11.0"
Expand Down Expand Up @@ -170,7 +171,7 @@ kotlinxCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core",
latencyUtils = { module = "org.latencyutils:LatencyUtils", version.ref = "latency-utils" }
lmaxDisruptor = "com.lmax:disruptor:3.4.4"
logback12 = { module = "ch.qos.logback:logback-classic", version.ref = "logback12" }
logback14 = {module = "ch.qos.logback:logback-classic", version = "1.4.14" }
logbackLatest = {module = "ch.qos.logback:logback-classic", version.ref = "logback-latest" }
log4j = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" }
mavenResolverConnectorBasic = { module = "org.apache.maven.resolver:maven-resolver-connector-basic", version.ref = "maven-resolver" }
mavenResolverTransportHttp = { module = "org.apache.maven.resolver:maven-resolver-transport-http", version.ref = "maven-resolver" }
Expand Down
4 changes: 2 additions & 2 deletions micrometer-jetty12/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ dependencies {
optionalApi libs.jetty12Server
optionalApi libs.jetty12Client

testRuntimeOnly(libs.logback14) {
testRuntimeOnly(libs.logbackLatest) {
version {
strictly libs.logback14.get().version
strictly libs.logbackLatest.get().version
}
}

Expand Down
10 changes: 5 additions & 5 deletions samples/micrometer-samples-jersey3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ plugins {
dependencies {
implementation project(":micrometer-core")

// Test sample project with SLFJ4 2.x / Logback 1.4; see gh-3415
runtimeOnly(libs.logback14) {
// Test sample project with SLFJ4 2.x / Logback; see gh-3415
runtimeOnly(libs.logbackLatest) {
version {
strictly libs.logback14.get().version
strictly libs.logbackLatest.get().version
}
}
testRuntimeOnly(libs.logback14) {
testRuntimeOnly(libs.logbackLatest) {
version {
strictly libs.logback14.get().version
strictly libs.logbackLatest.get().version
}
}

Expand Down

0 comments on commit b22be11

Please sign in to comment.