Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !9914

Fixed the errors in ignore generation process; added the abilities to select the version of libraries for Java, to hide sections in pom.xml

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/Nikolai-SE/master into master Jul 08, 2021
  • Overview 0
  • Commits 31
  • Pipelines 1
  • Changes 20

Created by: Nikolai-SE

Fixed next errors in ignore generation process with .openapi-generator-ignore:

  1. All directories were generated in DefaultGenerator.generateSupportingFiles()
  2. Empty directories weren't generated in DefaultGenerator.processTemplateToFile()

How these were fixed:

  1. In method generateSupportingFiles() have deleted few code, that creates all directories.
  2. Method processTemplateToFile() have become creating longest non-ignored path to file ( even the file ).

Useful additions for Java:

In order for the generated code to use the necessary versions of the libraries, it will be convenient to set them during the generation configuration. For example, by specifying the field '-version' (additionalProperties). To do this, the template files pom.mustache in java/libraries have been edited.

To hide some sections from the file pom.xml it will be convenient to set the configuration flags (additionalProperties): generate-licenses, generate-developers, generate-parent those are true default. To do this, the template files pom.mustache in java/libraries and code in AbstractJavaCodegen have been also edited.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Nikolai-SE/master