Skip to content

test(spring): [Sample Tests 43] Compile the Spring modules against their oldest Spring Boot version - #6383

Draft
runningcode wants to merge 1 commit into
no/spring-boot-matrix-tasksfrom
no/spring-boot-oldest-compile-check
Draft

runningcode wants to merge 1 commit into
no/spring-boot-matrix-tasksfrom
no/spring-boot-oldest-compile-check

Conversation

@runningcode

@runningcode runningcode commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

PR Stack (Sample Tests)


📜 Description

Adds compileJavaBoot<oldest> to each of the six Spring modules. It compiles the main Java sources against a compile classpath resolved for the oldest version of the line (2.7.0, 3.2.12 or 4.0.0), with compileJava's compiler, release level and annotation processors. The oldest version's aggregate depends on it, so the matrix workflows run it.

💡 Motivation and Context

Part of JAVA-802 (#6379). Since the previous PR, the SDK only compiles against the catalog's Spring Boot version. The catalog edit used to check, as a side effect, that it also compiles against the oldest version of each line. Without this task, an unguarded call to a newer API would only fail if a suite happened to run that code path.

💚 How did you test it?

  • All six compile.
  • I temporarily added a call to Spring Boot 3.4's ClientHttpRequestFactoryBuilder to sentry-spring-boot-jakarta. compileJavaBoot3_2_12 failed and compileJava passed.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

This is the last PR in the stack.

#skip-changelog

🤖 Generated with Claude Code

…Boot version

Since the matrix stopped rewriting the catalog, the SDK only compiles
against the catalog's Spring Boot version, so nothing checked any more
that it compiles against the oldest version of each line. An unguarded
call to a newer API would only fail if a suite ran that code path.

The Spring Boot matrix plugin now registers compileJavaBoot<oldest> in
each of the six modules, compiling the main sources against a compile
classpath resolved for the line's oldest version. The oldest version's
aggregate depends on it, so the matrix workflows run it.

Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code

linear-code Bot commented Oct 26, 2026

Copy link
Copy Markdown

JAVA-802

This was referenced Oct 26, 2026
@sentry

sentry Bot commented Oct 26, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.61.1 (1) release

⚙️ sentry-android Build Distribution Settings

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant