Replace pulumi-java-gen with pulumi package gen-sdk #3151
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Still WIP
This replaces the use of
pulumi-java-gen
withpulumi 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 inprovider/pkg/gen/java-templates
down one level into a nestedjava
directory (alternatively we could have renamedjava-templates
to justjava
).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).