Skip to content

Commit 32664e0

Browse files
authored
Merge pull request #2 from webauthn4j/master
Synchronization with upstream project
2 parents 1e01f1a + 7c402d4 commit 32664e0

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ buildscript {
2626
httpBuilderVersion = '0.7.2'
2727

2828
//Libraries
29-
webauthn4jVersion = '0.20.6.RELEASE'
29+
webauthn4jVersion = '0.20.8.RELEASE'
3030
springSecurityVersion = '5.7.6'
3131
hibernateValidatorVersion = '6.2.5.Final'
3232
thymeleafVersion = '3.0.4.RELEASE'
@@ -44,6 +44,13 @@ buildscript {
4444
// To use WebAuthn WebDriver extension, alpha release is used here.
4545
// When stable version is released, and Spring Boot BOM includes it, this need to be removed.
4646
seleniumVersion = '4.8.0'
47+
48+
// To make the test pass without errors NoClassDefFoundError in samples/fido-server-conformance-test-app
49+
// There is a compatibility issue between the versions of SLF4J/Logback used by webauthn4j and the versions used by Spring Boot 2.7.x
50+
// There are breaking change in th SLF4J 2.x branche ("SLF4J API version 2.0.0 relies on the ServiceLoader mechanism to find its logging backend"
51+
// and no any more on the StaticLoggerBinder see https://www.slf4j.org/manual.html).
52+
// When upgrading to Spring Boot 3.x branche, this constant will have to be removed.
53+
logbackSpringBoot27xCompatibilityVersion = '1.2.11'
4754
}
4855

4956
repositories {

samples/fido-server-conformance-test-app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ dependencies {
4040
implementation("org.slf4j:jcl-over-slf4j")
4141
implementation("org.modelmapper:modelmapper")
4242
implementation('org.flywaydb:flyway-core')
43-
runtimeOnly('ch.qos.logback:logback-classic')
43+
//We have to force the use of this dependency
44+
runtimeOnly("ch.qos.logback:logback-classic:$logbackSpringBoot27xCompatibilityVersion"){
45+
force = true
46+
}
4447
runtimeOnly('com.h2database:h2')
4548
runtimeOnly('com.mysql:mysql-connector-j')
4649
runtimeOnly("org.lazyluke:log4jdbc-remix")

samples/mpa/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ dependencies {
4646
implementation('org.webjars:font-awesome:6.2.1')
4747
implementation('org.webjars:webjars-locator:0.46')
4848

49+
//We have to force the use of this dependency
50+
runtimeOnly("ch.qos.logback:logback-classic:$logbackSpringBoot27xCompatibilityVersion"){
51+
force = true
52+
}
53+
4954
//Test
5055
testImplementation project(':webauthn4j-spring-security-test')
5156
testImplementation('org.springframework.boot:spring-boot-starter-test')

samples/spa/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ dependencies {
4242
implementation("org.slf4j:jcl-over-slf4j")
4343
implementation("org.modelmapper:modelmapper")
4444
implementation('org.flywaydb:flyway-core')
45-
runtimeOnly('ch.qos.logback:logback-classic')
45+
//We have to force the use of this dependency
46+
runtimeOnly("ch.qos.logback:logback-classic:$logbackSpringBoot27xCompatibilityVersion"){
47+
force = true
48+
}
4649
runtimeOnly('com.h2database:h2')
4750
runtimeOnly('com.mysql:mysql-connector-j')
4851
runtimeOnly("org.lazyluke:log4jdbc-remix")

0 commit comments

Comments
 (0)