swagger-api / swagger-api/swagger-codegen
[JAVA] Exclude Gradle files from the generated client(it generates both Maven and Gradle files)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Good day to everyone,
I am generating the client by using the following comand:
"java -jar openapi-generator-cli.jar generate -i rest-api-client-new.json -g java -o output
-pjava8=true
-pdateLibrary=java8
-psourceFolder=src/main/java
-pinvokerPackage=com.example.client
-papiPackage=com.example.client.rest.api
-pmodelPackage=com.example.client.rest.model
--skip-validate-spec"
and it generates the client with both gradle manifest and maven pom project types.
I need to exclude everything that is not for maven. Is there a param "-p" that excludes Gradle?
Kind regards,
Mihail
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Java generator's template and configuration flow for project files, using the supplied Java generation command as the reproduction case. Confirm which generated files belong to Maven and Gradle, then verify that a Maven-only option produces no Gradle files while preserving the existing Maven output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100