spring-framework icon indicating copy to clipboard operation
spring-framework copied to clipboard

Add API compatibility tooling in the build

Open bclozel opened this issue 7 months ago • 1 comments

The Spring Framework team previously generated and shared publicly API comparison reports for each release. This was abandoned later because the community didn't use those.

In #36591, I'm seeing an opportunity to bring this back in a different fashion, with custom rules that align with the Spring Framework backwards compatibility rules:

  • Major versions change the baseline and can break source and binary compatibility
  • Minor versions avoid source and binary breakages, but can remove long-deprecated types and methods
  • Patch versions are source and binary compatible

I have tested changes locally that use JApiCmp, but the setup is incomplete. I have found a bug in the library and we would need more flexibility from the Gradle plugin to allow us to redefine semantic versioning rules accordingly. Those are the two prerequisites to consider this in our build.

bclozel avatar Apr 10 '26 10:04 bclozel

Hi @bclozel , this looks like a valuable improvement for maintaining Spring Framework's API stability. I have experience working with build tooling and compatibility checks, and I would be interested in helping with the Gradle/JApiCmp integration if there are parts that could use community contribution.

Pujagithub2006 avatar Nov 14 '26 10:11 Pujagithub2006