swagger-api / swagger-api/swagger-codegen

Feature Request: Make build support files optional

Open
#3,724 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature General: Suggestion
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I'm using the swagger-codegen-maven-plugin to generate clients for my swagger apis. As the swagger description may change in the future the code generator is run for every build. The generated code is directly referenced by the same maven project that runs the code generator. Because of that the generated code contains a maven, gradle and sbt project and more files that are not required. The only files required by my project are those generated into src/main/java. Those are added to the maven build path and added to the jar.

Please allow to disable the code generation for optional files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names swagger-codegen-maven-plugin and the generated src/main/java tree; start by tracing the plugin's generation configuration and how support files are selected. Done means an option can omit Maven, Gradle, sbt, and other non-src/main/java files while retaining the Java sources. No specific implementation file or test is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.