OpenAPITools / OpenAPITools/openapi-generator
[BUG][Java][client] jackson-databind-nullable version variable Gradle Incompatibility
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
When generating a Java Client library, the jackson-databind-nullable version parameter (jackson-databind-nullable-version) used in build.gradle.mustache contains dashes instead of underscores. This results in an error during a Gradle build:
(((jackson - databind) - nullable) - version) is a binary expression, but it should be a variable expression
The dashes for this version parameter should be replaces with underscores. Example file with error
Gradle Version 5.3.1
openapi-generator version
OpenAPI Generator Version 4.1.2
Command line used for generation
java8: true,
dateLibrary : "java8",
useTags: true,
library: "feign",
feignVersion: "10.x"
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 with modules/openapi-generator/src/main/resources/Java/build.gradle.mustache, the example file named in the issue. Inspect the jackson-databind-nullable version parameter and update its naming as requested. Done means a generated Java client’s Gradle build accepts the version variable without the reported binary-expression error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100