Skip to content

Commit 5be3176

Browse files
authored
Bump Spring Boot 4 to M2 (#4665)
* Bump Spring Boot 4 to M2 * replace netty bom with boot plugin bom
1 parent 3699cd5 commit 5be3176

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ retrofit = "2.9.0"
3131
slf4j = "1.7.30"
3232
springboot2 = "2.7.18"
3333
springboot3 = "3.5.0"
34-
springboot4 = "4.0.0-M1"
34+
springboot4 = "4.0.0-M2"
3535
# Android
3636
targetSdk = "34"
3737
compileSdk = "34"

sentry-spring-7/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ tasks.withType<KotlinCompile>().configureEach {
2828

2929
dependencies {
3030
api(projects.sentry)
31+
3132
compileOnly(platform(SpringBootPlugin.BOM_COORDINATES))
33+
3234
compileOnly(Config.Libs.springWeb)
3335
compileOnly(Config.Libs.springAop)
3436
compileOnly(Config.Libs.springSecurityWeb)
@@ -54,6 +56,7 @@ dependencies {
5456
errorprone(libs.nopen.checker)
5557
errorprone(libs.nullaway)
5658

59+
testImplementation(platform(SpringBootPlugin.BOM_COORDINATES))
5760
// tests
5861
testImplementation(projects.sentryTestSupport)
5962
testImplementation(projects.sentryGraphql)

sentry-spring-7/src/test/kotlin/io/sentry/spring7/mvc/SentrySpringIntegrationTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,21 +389,21 @@ open class App {
389389
@Bean
390390
open fun sentryUserFilter(scopes: IScopes, @Lazy sentryUserProviders: List<SentryUserProvider>) =
391391
FilterRegistrationBean<SentryUserFilter>().apply {
392-
this.filter = SentryUserFilter(scopes, sentryUserProviders)
392+
this.setFilter(SentryUserFilter(scopes, sentryUserProviders))
393393
this.order = Ordered.LOWEST_PRECEDENCE
394394
}
395395

396396
@Bean
397397
open fun sentrySpringFilter(scopes: IScopes) =
398398
FilterRegistrationBean<SentrySpringFilter>().apply {
399-
this.filter = SentrySpringFilter(scopes)
399+
this.setFilter(SentrySpringFilter(scopes))
400400
this.order = Ordered.HIGHEST_PRECEDENCE
401401
}
402402

403403
@Bean
404404
open fun sentryTracingFilter(scopes: IScopes) =
405405
FilterRegistrationBean<SentryTracingFilter>().apply {
406-
this.filter = SentryTracingFilter(scopes)
406+
this.setFilter(SentryTracingFilter(scopes))
407407
this.order = Ordered.HIGHEST_PRECEDENCE + 1 // must run after SentrySpringFilter
408408
}
409409

0 commit comments

Comments
 (0)