Skip to content

springdoc-openapi-starter 3.x doesn't depend on org.springframework.boot:spring-boot-starter #3228

@mhalbritter

Description

@mhalbritter

Hello,

while working on spring-io/start.spring.io#2088, i noticed a difference between the 2.x version and the 3.x version.

In 2.x, the org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.15 dependency has a transitive dependency on org.springframework.boot:spring-boot-starter:

 - Compile classpath for source set 'main'.
\--- org.springdoc:springdoc-openapi-starter-webmvc-ui:2.8.15
     +--- org.springdoc:springdoc-openapi-starter-webmvc-api:2.8.15
     |    +--- org.springdoc:springdoc-openapi-starter-common:2.8.15
     |    |    +--- org.springframework.boot:spring-boot-autoconfigure:3.5.9 -> 3.5.11
     |    |    |    \--- org.springframework.boot:spring-boot:3.5.11
     |    |    |         +--- org.springframework:spring-core:6.2.16
     |    |    |         |    \--- org.springframework:spring-jcl:6.2.16
     |    |    |         \--- org.springframework:spring-context:6.2.16
     |    |    |              +--- org.springframework:spring-aop:6.2.16
     |    |    |              |    +--- org.springframework:spring-beans:6.2.16
     |    |    |              |    |    \--- org.springframework:spring-core:6.2.16 (*)
     |    |    |              |    \--- org.springframework:spring-core:6.2.16 (*)
     |    |    |              +--- org.springframework:spring-beans:6.2.16 (*)
     |    |    |              +--- org.springframework:spring-core:6.2.16 (*)
     |    |    |              +--- org.springframework:spring-expression:6.2.16
     |    |    |              |    \--- org.springframework:spring-core:6.2.16 (*)
     |    |    |              \--- io.micrometer:micrometer-observation:1.15.9
     |    |    |                   \--- io.micrometer:micrometer-commons:1.15.9
     |    |    +--- org.springframework.boot:spring-boot-starter-validation:3.5.9 -> 3.5.11
     |    |    |    +--- org.springframework.boot:spring-boot-starter:3.5.11

This makes the starter a "real" starter, because every starter should depend directly or indirectly on org.springframework.boot:spring-boot-starter (see the NOTE here).

However, the 3.x version doesn't do this, there's no org.springframework.boot:spring-boot-starter in the dependency tree, which doesn't make it a "real" starter.

Could you please also depend on org.springframework.boot:spring-boot-starter in the 3.x version to fix this?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions