Skip to content
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

Replace pulumi-java-gen with pulumi package gen-sdk #3151

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Aug 5, 2024

Still WIP

This replaces the use of pulumi-java-gen with pulumi package gen-sdk, the new and modern interface to codegen.

gen-sdk does make some assumptions about overlay and output paths containing the language name, so I've had to move everything in provider/pkg/gen/java-templates down one level into a nested java directory (alternatively we could have renamed java-templates to just java).

Also without the --build option to use on the command line we need to set the gradle-nexus options directly in the schema.

Finally java sdk gen doesn't set its own default dependencies, it was only the pulumi-java-gen command that filled in defaults correctly. That feels like a java codegen bug that should be fixed before we merge this so we don't have to add all the default dependencies in the schema directly (the PR currently does this).

Copy link

github-actions bot commented Aug 5, 2024

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@blampe blampe added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Aug 5, 2024
Copy link

codecov bot commented Aug 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 36.27%. Comparing base (93b4649) to head (942edc8).

Files Patch % Lines
provider/pkg/gen/schema.go 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3151      +/-   ##
==========================================
- Coverage   36.32%   36.27%   -0.05%     
==========================================
  Files          70       70              
  Lines        9251     9256       +5     
==========================================
- Hits         3360     3358       -2     
- Misses       5555     5561       +6     
- Partials      336      337       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Frassle Frassle force-pushed the fraser/javagen branch 2 times, most recently from 3866816 to 466104d Compare August 5, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants