pulumi / pulumi-java

Java support for Pulumi
Apache License 2.0
69 stars 21 forks source link

Support PulumiPluginJSON.Server in pulumi-java-gen #711

Open t0yv0 opened 2 years ago

t0yv0 commented 2 years ago

Hello!

Issue details

With #709 the responsibility of generating plugin.json with metadata about the package is moving from pulumi-java-gen invocation itself to the generated build system, currently supporting Gradle. One feature lost in translation is populating the server field from PluginDowlnoadURL in the schema.

That is on the old path we have:

        pulumiPlugin := &plugin.PulumiPluginJSON{
            Resource: true,
            Name:     pkg.Name,
            Version:  cfg.Version.String(),
            Server:   pkg.PluginDownloadURL,
        }

We should have the same functionality on the new path. pulumi-java-gen should emit build code that populates PluginDownloadURL from the schema to the generated Java resource plugin.json so the generated SDK code can read it back and act accordingly.

Affected area/feature

muhlba91 commented 1 year ago

related to https://github.com/pulumi/pulumi-java/issues/1109