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
  • Issues
  • #1501
Closed
Open
Issue created Nov 20, 2018 by Administrator@rootContributor

Skip maven code generation if source file is unchanged

Created by: rasmusfaber

Description

When using the Maven task the generator always runs, even if the source file is unchanged.

It would be nice to skip the generation, if there have been no changes.

openapi-generator version

3.3.3 / 3.3.4-SNAPSHOT

Steps to reproduce

Run maven compile twice in a row, notice that the generator always run, even if there have been no changes.

Suggest a fix/enhancement

It might be difficult to track the state, including the maven-options, but if we just compare the timestamp of the source file and the output file, it should be close enough, as long as the skip is not per default

Assignee
Assign to
Time tracking