Upgrade to Logback 1.5.38

Closes gh-51056
This commit is contained in:
Stéphane Nicoll
2026-07-20 16:53:53 +02:00
parent 526764e8de
commit 530ee52984
3 changed files with 37 additions and 2 deletions
@@ -339,7 +339,8 @@ class SpringBootJoranConfiguratorTests {
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<springProperty scope="context" name="MINE" source="my.example-property"/>
<if condition='property("MINE").contains("true")'>
<condition class="org.springframework.boot.logging.logback.TestPropertyCondition"/>
<if>
<then>
<variable scope="context" name="MYCHECK" value="i-was-included"/>
</then>
@@ -0,0 +1,34 @@
/*
* Copyright 2012-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.boot.logging.logback;
import ch.qos.logback.core.boolex.PropertyConditionBase;
/**
* Test condition used by {@link SpringBootJoranConfiguratorTests}.
*
* @author Stephane Nicoll
*/
@SuppressWarnings("unused")
public class TestPropertyCondition extends PropertyConditionBase {
@Override
public boolean evaluate() {
return property("MINE").contains("true");
}
}
@@ -1386,7 +1386,7 @@ bom {
releaseNotes("https://github.com/apache/logging-log4j2/releases/tag/rel%2F{version}")
}
}
library("Logback", "1.5.34") {
library("Logback", "1.5.38") {
group("ch.qos.logback") {
modules = [
"logback-classic",