Skip to content

[Don't Merge] Force suppression of timestamps in OpenAPI generated code #1838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

clayburn
Copy link
Member

This sample shows how a Develocity convention extension could enforce the hideGenerationTimestamp config option of the java OpenAPI code generator always be true. This config option is problematic because it defaults to false. When disabled, OpenAPI generated code will including timestamps in Generated annotations, causing cache misses and non-reproducible builds.

This sample makes it possible to opt-out of this behavior via -Dopenapi.suppressTimestampGeneration.

I am mainly interested in getting feedback on the changes to the extension. The example is just there to support testing.

I won't merge this into the extension example as it should not belong here, but this best shows the changes I made.

@clayburn clayburn requested review from bdemers and welandaz April 16, 2025 18:22
Copy link
Contributor

github-actions bot commented Apr 16, 2025

Job Requested goals Build Tool Version Build Outcome Build Scan®
verification-[object Object] wrapper:wrapper 3.9.9 Build Scan NOT_PUBLISHED
verification-[object Object] clean verify 3.8.8 Build Scan PUBLISHED
Generated by gradle/develocity-actions

Copy link
Contributor

Job Requested goals Build Tool Version Build Outcome Build Scan®
verification-[object Object] clean verify 3.9.9 Build Scan PUBLISHED
Generated by gradle/develocity-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant