OpenAPITools / OpenAPITools/openapi-generator

[REQ][Server-Java] Generate Gradle project

Open
#3,141 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

Generating a client using the java generator yields a project with both Maven and Gradle set up to build the project. Generating a server using e.g. the jaxrs-spec generator yields a project that only has Maven set up (no build.gradle or wrapper). The non-generated projects I work on use Gradle, so having to use Maven means an additional tool to maintain/install/learn about.

Describe the solution you'd like

The relevant Gradle files should also be generated, as in other generators (gradle wrapper, build.gradle, settings.gradle etc).

Describe alternatives you've considered

  • Use Maven
  • Store the relevant files and manually copy into the project post generation

Additional context

This seems commonplace in other generators, so plenty of precedent to work off.

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

Compare the Gradle files generated by the Java client generator with the jaxrs-spec server generator, focusing on the build.gradle, settings.gradle, and Gradle wrapper requested in the issue. Verify that a generated server project includes these files and can be built with Gradle, matching the existing Maven setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.