Skip to content

[JAVA] No maven wrapper in generated code - Feature Request #10420

@Grandolf49

Description

@Grandolf49

Description

I'm using swagger-codegen-gradle-plugin and swagger-codegen-cli:3.0.18 to generate a Java client for my project. I understand it is mentioned in the swagger readme to use mvn install to build the generated client but I don't want my users to have to separately install maven just for using the generated API client.

That is why I require a maven wrapper in the generated code so that the users can simply use ./mvnw install to build the generated code and not install maven separately. This also solves the problem of version conflicts with already installed maven for some users.

Swagger-codegen version

  • io.swagger.codegen.v3:swagger-codegen-cli:3.0.18
  • gradle.plugin.org.hidetake:gradle-swagger-generator-plugin:2.18.2
  • io.swagger.core.v3:swagger-gradle-plugin:2.1.4

Related issues/PRs

This PR Adds a maven wrapper to the swagger-codegen project but not to the generated code.

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