Skip to content

The spring-boot-cloudfoundry module should only have an optional dependency on spring-boot-security #48685

@matthew-js-porter

Description

@matthew-js-porter

spring-boot-cloudfoundry has an implementation dependency on spring-boot-security:

implementation(project(":module:spring-boot-security"))

This causes Spring Security to be configured in applications otherwise not using it. Should spring-boot-security be an optional dependency instead?

excluding spring-boot-security from spring-boot-cloudfoundry seems to function as expected.

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-cloudfoundry</artifactId>
      <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-security</artifactId>
        </exclusion>
      </exclusions>
</dependency>

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions