salesforce / grpc-java-contrib

Useful extensions for the grpc-java library
BSD 3-Clause "New" or "Revised" License
220 stars 34 forks source link

WIP: Canteen - cross-platform self-executing jars #115

Closed rmichela closed 5 years ago

rmichela commented 5 years ago

jProtoc makes it easy to create protoc plugins that execute in jar files, which can be easily referenced by the maven-protobuf-plugin. Unfortunately, other build toolchains like Gradle don't have this capability. Additionally, the requirement that Java plugins be executed as java -jar xxx limits their cross toolchain applicability. The existing work-around is to package jProtoc plugins with shell scripts, but this limits their usability across platforms - notably, Windows.

Canteen aims to solve this problem by enabling cross-platform self-executing jar files, which can be executed natively on Mac, Linux, and Windows directly from the command line.

How does this work?