OpenAPITools / OpenAPITools/openapi-generator

[REQ] Modified pom.xml files to reduce the build time

Open
#10,162 1 comment 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.

I noticed that this is a Maven project, so I checked all of the pom.xml file and found that there are two dependencies :

Relative paths: openapi-generator/samples/server/petstore/jaxrs-cxf-test-data/pom.xml
Dependency: { Name: org.openapitools/openapi-generator, Version Specifier: 5.2.0-SNAPSHOT }

Relative paths: openapi-generator/samples/server/petstore/kotlin/vertx/pom.xml
Dependency: {Name: org.jetbrains.kotlinx/kotlinx-coroutines-core, Version Specifier: RELEASE}

we know that RELEASE/LATEST/SNAPSHOT dependence means that every time the project is built, the dependency needs to find the latest version, which increases the cost of the build.

Describe the solution you'd like

It helps to have a specific version. So I have modified the of the two dependencies as follows:

Relative paths: openapi-generator/samples/server/petstore/jaxrs-cxf-test-data/pom.xml
Dependency: { Name: org.openapitools/openapi-generator, Version Specifier: 5.2.0-SNAPSHOT } ------> 5.2.0


Relative paths: openapi-generator/samples/server/petstore/kotlin/vertx/pom.xml
Dependency: {Name: org.jetbrains.kotlinx/kotlinx-coroutines-core, Version Specifier: RELEASE} ------> 1.5.1-native-mt

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

Inspect the dependency declarations in openapi-generator/samples/server/petstore/jaxrs-cxf-test-data/pom.xml and openapi-generator/samples/server/petstore/kotlin/vertx/pom.xml. Build the affected sample modules and confirm both dependencies use fixed versions rather than SNAPSHOT or RELEASE resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
build-system
Issue type
Refactor
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.