swagger-api / swagger-api/swagger-codegen

[codegen][JAVA] configure jcenter url

Open
#8,034 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I our Company we mirrored the repositories jcenter and maven central.
In the generated build.gradle i would optional replace jcenter() with jcenter{url="myprivatemirror"}

Swagger-codegen version

2.4.0

Swagger declaration file content or url
Command line used for generation

-l java

Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement

i am adding a optional command line parameter
-DprivateJCenterURL

and by the way i would add a optional parameter
-DprivateGradleDistributionBaseURL

to use our internal gradle mirror

and when i am already changing something i would change the gradle version to latest release 4.6

are you interested on a PR ?

thanks
andreas

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

Start with the generated build.gradle for the Java generator and the command-line handling for -l java. Review how generator options are passed into templates, then define completion as supporting the requested private repository and Gradle distribution URLs and the specified Gradle version.

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.