pactflow / pact-protobuf-plugin

Pact plugin for Protobufs and gRPC
MIT License
16 stars 8 forks source link

Way to install the plugin automatically with maven/gradle? #35

Open edeandrea opened 8 months ago

edeandrea commented 8 months ago

Hello. Is there a way this plugin could be installed by a build tool (Maven/Gradle for example in the Java space)? I want to use this plugin for an open source sample project, but I can't have any user who forks/clones the project have to go through setting it up so that they can build the application.

It would also make it much easier to set up in CI servers (GitHub actions, etc).

rholshausen commented 8 months ago

The plugin can be auto-installed as needed when using the latest versions of supported Pact implementations (like Pact-JVM).

If the auto-installation does not work for you, you can use the pact-plugin-cli. This should work in CI (we use it in the Pact CI).

edeandrea commented 8 months ago

Thank you. Unfortunately I can't take the latest & greatest pact-jvm due to its Java 17 requirement. I also can't/don't want to rely on some external process or cli to be able to install it.

This is for an OSS sample project and I really can't expect users to have to install some cli and run some commands before they can do a local build of the project. For CI servers/GitHub actions, sure this could be automated as part of the CI process. But that wouldn't help any ordinary user who would like to fork/clone the project and be able to build/test it.

Unfortunately I'll have to sit on this and wait for now.