Skip to content

Task 4: Replace Springfox with springdoc-openapi#199

Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/task4-replace-springfox
Open

Task 4: Replace Springfox with springdoc-openapi#199
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/task4-replace-springfox

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented May 1, 2026

Summary

Replaces the deprecated Springfox Swagger 2 library with springdoc-openapi-ui 1.8.0 (compatible with the project's Spring Boot 2.x).

Changes:

  • common-swagger/build.gradle: Removed springfox-swagger2:2.8.0 and springfox-swagger-ui:2.8.0 dependencies; added springdoc-openapi-ui:1.8.0
  • CommonSwaggerConfiguration.java: Replaced Springfox Docket/@EnableSwagger2 configuration with springdoc GroupedOpenApi and OpenAPI beans

Not changed (verified clean):

  • RestaurantServiceConfiguration.java — only imports CommonSwaggerConfiguration, no springfox-specific code
  • OrderServiceConfiguration.java — only imports CommonSwaggerConfiguration, no springfox-specific code
  • ConsumerServiceConfiguration.java — only imports CommonSwaggerConfiguration, no springfox-specific code

Build verification:

  • :common-swagger:build passes
  • :ftgo-restaurant-service:compileJava, :ftgo-order-service:compileJava, :ftgo-consumer-service:compileJava all compile successfully
  • No remaining springfox references anywhere in the codebase

Review & Testing Checklist for Human

  • Verify Swagger UI is accessible at /swagger-ui.html or /swagger-ui/index.html after starting the application (springdoc serves UI at a different default path than springfox)
  • Confirm the OpenAPI spec is generated at /v3/api-docs and includes the expected endpoints under the ftgo group
  • Check that springdoc.packagesToScan correctly picks up all controller classes under net.chrisrichardson.ftgo

Notes

  • springdoc-openapi-ui 1.8.0 is used because the project runs on Spring Boot 2.x (Spring Boot 3.x would require springdoc-openapi-starter-webmvc-ui instead)
  • The pre-existing repo-wide build failure (missing eventuate-util-test from deprecated jcenter) is unrelated to these changes

Link to Devin session: https://app.devin.ai/sessions/ceba4fdb13924d929e825b05c8bda18e
Requested by: @WesternConcrete


Devin Review

Status Commit
⚪ Not started

Run Devin Review

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)
Open in Devin Review

- Remove springfox-swagger2 and springfox-swagger-ui dependencies
- Add springdoc-openapi-ui:1.8.0 (compatible with Spring Boot 2.x)
- Replace Docket/EnableSwagger2 configuration with GroupedOpenApi and OpenAPI beans
- No changes needed to service configuration files (they only import CommonSwaggerConfiguration)

Co-Authored-By: Wes Convery <2wconvery@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

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