Title: The spring-boot-cloudfoundry module should only have an optional dependency on spring-boot-security · Issue #48685 · spring-projects/spring-boot · GitHub
Open Graph Title: The spring-boot-cloudfoundry module should only have an optional dependency on spring-boot-security · Issue #48685 · spring-projects/spring-boot
X Title: The spring-boot-cloudfoundry module should only have an optional dependency on spring-boot-security · Issue #48685 · spring-projects/spring-boot
Description: spring-boot-cloudfoundry has an implementation dependency on spring-boot-security: spring-boot/module/spring-boot-cloudfoundry/build.gradle Line 31 in b2bc463 implementation(project(":module:spring-boot-security")) This causes Spring Sec...
Open Graph Description: spring-boot-cloudfoundry has an implementation dependency on spring-boot-security: spring-boot/module/spring-boot-cloudfoundry/build.gradle Line 31 in b2bc463 implementation(project(":module:spring...
X Description: spring-boot-cloudfoundry has an implementation dependency on spring-boot-security: spring-boot/module/spring-boot-cloudfoundry/build.gradle Line 31 in b2bc463 implementation(project(":module:s...
Opengraph URL: https://github.com/spring-projects/spring-boot/issues/48685
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The spring-boot-cloudfoundry module should only have an optional dependency on spring-boot-security","articleBody":"\u003c!--\nThanks for raising a Spring Boot issue. Please take the time to review the following\ncategories as some of them do not apply here.\n\n🙅 \"Please DO NOT Raise an Issue\" Cases\n- Question\nSTOP!! Please ask questions about how to use something, or to understand why something isn't\nworking as you expect it to, on Stack Overflow using the spring-boot tag.\n- Security Vulnerability\nSTOP!! Please don't raise security vulnerabilities here. Head over to https://spring.io/security-policy to learn how to disclose them responsibly.\n- Managed Dependency Upgrade\nYou DO NOT need to raise an issue for a managed dependency version upgrade as there's a semi-automatic process for checking managed dependencies for new versions before a release. BUT pull requests for upgrades that are more involved than just a version property change are still most welcome.\n- With an Immediate Pull Request\nAn issue will be closed as a duplicate of the immediate pull request, so you don't have to raise an issue if you plan to create a pull request immediately.\n\nspring-boot-security should be an Optional Dependency of spring-boot-cloud-foundry\n\n🐞 Bug report (please don't include this emoji/text, just add your details)\nPlease provide details of the problem, including the version of Spring Boot that you\nare using. If possible, please provide a test case or sample application that reproduces\nthe problem. This makes it much easier for us to diagnose the problem and to verify that\nwe have fixed it.\n\n🎁 Enhancement (please don't include this emoji/text, just add your details)\nPlease start by describing the problem that you are trying to solve. There may already\nbe a solution, or there may be a way to solve it that you hadn't considered.\n\n\nTIP: You can always edit your issue if it isn't formatted correctly.\n See https://guides.github.com/features/mastering-markdown \n--\u003e\n\n\n`spring-boot-cloudfoundry` has an `implementation` dependency on `spring-boot-security`:\nhttps://github.com/spring-projects/spring-boot/blob/b2bc463d997df6f1b9eba8aaa1f7c2b38fb6f012/module/spring-boot-cloudfoundry/build.gradle#L31\n\nThis causes Spring Security to be configured in applications otherwise not using it. Should `spring-boot-security` be an optional dependency instead?\n\nexcluding `spring-boot-security` from `spring-boot-cloudfoundry` seems to function as expected.\n\n```xml\n\u003cdependency\u003e\n \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n \u003cartifactId\u003espring-boot-starter-cloudfoundry\u003c/artifactId\u003e\n \u003cexclusions\u003e\n \u003cexclusion\u003e\n \u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n \u003cartifactId\u003espring-boot-security\u003c/artifactId\u003e\n \u003c/exclusion\u003e\n \u003c/exclusions\u003e\n\u003c/dependency\u003e\n```","author":{"url":"https://github.com/matthew-js-porter","@type":"Person","name":"matthew-js-porter"},"datePublished":"2026-01-06T20:28:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/48685/spring-boot/issues/48685"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e53421d-ef72-4ab8-f0db-419368478ebb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B24A:29416C:1E748FE:296E641:6A654E4B |
| html-safe-nonce | 8f781f3cddae9f6a27a733a183c2016830f95692323e99b7c4bd60604f74ee9a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjRBOjI5NDE2QzoxRTc0OEZFOjI5NkU2NDE6NkE2NTRFNEIiLCJ2aXNpdG9yX2lkIjoiNjU2NzU5NjMyNDE3MTM3MDA1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ef94d0ef822852a889de13a4daf34d0f6c1d97677ee0bbd4ec11ee8eae293b6 |
| hovercard-subject-tag | issue:3786422187 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/spring-projects/spring-boot/48685/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f131b0bf6a2a955880e522ba89fb74608ca1f797d52ebd6057fb17fc2ddff3d3/spring-projects/spring-boot/issues/48685 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f131b0bf6a2a955880e522ba89fb74608ca1f797d52ebd6057fb17fc2ddff3d3/spring-projects/spring-boot/issues/48685 |
| og:image:alt | spring-boot-cloudfoundry has an implementation dependency on spring-boot-security: spring-boot/module/spring-boot-cloudfoundry/build.gradle Line 31 in b2bc463 implementation(project(":module:spring... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthew-js-porter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| go-import | github.com/spring-projects/spring-boot git https://github.com/spring-projects/spring-boot.git |
| octolytics-dimension-user_id | 317776 |
| octolytics-dimension-user_login | spring-projects |
| octolytics-dimension-repository_id | 6296790 |
| octolytics-dimension-repository_nwo | spring-projects/spring-boot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 6296790 |
| octolytics-dimension-repository_network_root_nwo | spring-projects/spring-boot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width