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.
The
GeneratePackage
method of theLanguageRuntime
gRPC service allows callers to generate SDKs for a specified schema. This commits implements this endpoint forpulumi-language-java
, using the existingpkg/codegen
functionality that is currently only exposed through thepulumi-java-gen
binary. Doing so means we can begin to get conformance tests working for Java.As part of this work, we extend the work we started when implementing
GenerateProject
to support local repositories in generated SDKs. As with other languages, we add a field toPackageInfo
to this end. Since SDK generation uses Gradle (and not Maven, as program generation does), there is a bit of new plumbing to do here, but in principle the outcome is the same.Note
It is not certain yet that
GeneratePackage
behaves identically to the currently-used binary endpoint inpulumi-java-gen
-- we should make sure of this before switching over. This work is primarily a means to get conformance tests going.