Repository navigation
Commit 5e493bd
chore(build): Compile with a JDK 21 toolchain and upgrade Mockito and Error Prone (#6242)
* build: Switch to JDK 21 and upgrade Mockito, Robolectric and Error Prone
* build: Compile tests for JDK 21 and fix buildSrc JVM target
* build: Compile with a JDK 21 toolchain from a build-logic convention plugin
* docs(kafka): Explain the explicit double cast at the latency call site
* build: Compile the samples and their tests with the toolchain JDK
* Format code
* build: Drop the now-unused JvmTarget imports from the samples
* build: Clarify the jvm-targets plugin comments and rename its helper
* build: Require JDK 21 to run Gradle again
* build: Keep the Spring Boot 2 sample apps on their published bytecode level
* ci: Drop the stale Java version from the build job name
* build: Keep Robolectric at 4.15 and leave its test environment untouched
* build: Move the Java 8 release pin into the jvm-targets convention plugin
* build: Drop the Error Prone and NullAway code fixes, they move to their own PR
* ci: Drop the stale Java version from the build job name
* fix(core): Suppress the new Error Prone and javac 21 findings in the sentry module
* fix(core): Resolve the remaining Error Prone and javac 21 findings in the sentry module
* build: Move the JDK and bytecode level decisions into the io.sentry.compilation plugin
* Address PR comments
* test(android): Make the flush timeout verifies match the real log call
* chore(core): Reword the JDK 21 suppression comments
* build: Keep only the javac unit test targets inside afterEvaluate
* build: Drop afterEvaluate, pin the Kotlin API level and rename the convention plugin
* Fix JDK 21 findings in sentry-android-core (#6261)
Fix JDK 21 findings in sentry-android-core
* Fix JDK 21 findings in the Spring modules (#6260)
* Fix JDK 21 findings in the JVM integrations (#6259)
* fix multiplatform target compilations
---------
Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>1 parent 8d7b785 commit 5e493bd
188 files changed
Lines changed: 514 additions & 540 deletions
File tree
- .github/workflows
- build-logic
- src/main/kotlin/io/sentry/gradle
- buildSrc
- gradle
- sentry-android-core
- src
- main/java/io/sentry/android/core
- performance
- test/java/io/sentry/android/core
- sentry-android-fragment
- sentry-android-integration-tests
- sentry-uitest-android-critical
- sentry-uitest-android-macrobenchmark
- sentry-uitest-android
- sentry-android-replay
- sentry-android-sqlite
- sentry-android-timber
- src/test/java/io/sentry/android/timber
- sentry-apache-http-client-5
- sentry-apollo-3
- sentry-apollo-4
- sentry-apollo-5
- sentry-apollo
- sentry-async-profiler
- src/main/java/io/sentry/asyncprofiler/convert
- sentry-compose
- sentry-graphql-22
- sentry-graphql-core
- sentry-graphql
- sentry-jcache
- sentry-jdbc
- sentry-jul
- src/main/java/io/sentry/jul
- sentry-kafka
- src/main/java/io/sentry/kafka
- sentry-kotlin-extensions
- sentry-ktor-client
- sentry-launchdarkly-android
- sentry-launchdarkly-server
- sentry-log4j2
- sentry-logback
- src/main/java/io/sentry/logback
- sentry-okhttp
- sentry-openfeature
- sentry-openfeign
- sentry-opentelemetry
- sentry-opentelemetry-agentcustomization
- sentry-opentelemetry-bootstrap
- src/main/java/io/sentry/opentelemetry
- sentry-opentelemetry-core
- sentry-opentelemetry-otlp
- sentry-quartz
- sentry-reactor
- src/main/java/io/sentry/reactor
- sentry-samples
- sentry-samples-android
- sentry-samples-console-opentelemetry-noagent
- sentry-samples-console-otlp
- sentry-samples-console
- sentry-samples-jul
- sentry-samples-log4j2
- sentry-samples-logback
- sentry-samples-spring-7
- sentry-samples-spring-boot-4-log4j2
- sentry-samples-spring-boot-4-opentelemetry-noagent
- sentry-samples-spring-boot-4-opentelemetry
- sentry-samples-spring-boot-4-otlp
- sentry-samples-spring-boot-4-webflux
- sentry-samples-spring-boot-4
- sentry-samples-spring-boot-jakarta-log4j2
- sentry-samples-spring-boot-jakarta-opentelemetry-noagent
- sentry-samples-spring-boot-jakarta-opentelemetry
- sentry-samples-spring-boot-jakarta
- sentry-samples-spring-boot-opentelemetry-noagent
- sentry-samples-spring-boot-opentelemetry
- sentry-samples-spring-boot-webflux-jakarta
- sentry-samples-spring-boot-webflux
- sentry-samples-spring-boot
- sentry-samples-spring-jakarta
- sentry-samples-spring
- sentry-servlet-jakarta
- sentry-servlet
- sentry-spotlight
- sentry-spring-7
- src/main/java/io/sentry/spring7
- cache
- checkin
- exception
- graphql
- kafka
- tracing
- webflux
- sentry-spring-boot-4-starter
- sentry-spring-boot-4
- src/main/java/io/sentry/spring/boot4
- sentry-spring-boot-jakarta
- src/main/java/io/sentry/spring/boot/jakarta
- sentry-spring-boot-starter-jakarta
- sentry-spring-boot-starter
- sentry-spring-boot
- sentry-spring-jakarta
- src/main/java/io/sentry/spring/jakarta
- cache
- exception
- graphql
- kafka
- tracing
- sentry-spring
- src/main/java/io/sentry/spring
- kafka
- tracing
- sentry-system-test-support
- sentry-test-support
- sentry
- src
- main/java/io/sentry
- cache
- exception
- featureflags
- internal/modules
- logger
- metrics
- protocol
- rrweb
- time
- util
- network
- vendor/gson/stream
- test/java/io/sentry
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments