Skip to content

[JAVA][SPRING-CLOUD] ClientConfiguration always depends on spring-cloud-security and spring-security-oauth2 #6683

Open
@wjam

Description

@wjam
Description

The generated ClientConfiguration class always imports from spring-cloud-security and spring-security-oauth2 even if these imports are unused.

Swagger-codegen version

2.2.3

Swagger declaration file content or url

Example can be found at https://github.com/wjam/swagger-codegen-spring-cloud

Command line used for generation

Maven library used. Configuration is in the GitHub repo mentioned above

Steps to reproduce

Remove the line **/ClientConfiguration.java from the .swagger-codegen-ignore file and run mvn clean compile

Suggest a fix/enhancement

Only include those imports when they are actually required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions