Skip to content

Emit a Spring Boot starter per generated API #69

@OmarAlJarrah

Description

@OmarAlJarrah

Problem

Spring users expect autoconfiguration.

Proposed change

Design note for the generator (do not build a toolkit starter now): emit, per generated API, a @ConfigurationProperties class, a fun interface client customizer, and an @AutoConfiguration with @Bean @ConditionalOnMissingBean. The bean assembles {IoProvider + transport + HttpPipeline}. Spring deps stay confined to the generated starter module.

Prior art: openai-java's spring-boot-starter module.

Acceptance

  • Starter shape recorded for codegen

Dependencies


Priority: medium · Effort: medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    codegenfuture KotlinPoet codegenenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions