You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The protobuf gradle plugin supports downloading protoc plugins from maven central: https://github.com/google/protobuf-gradle-plugin#locate-external-executables. This would make it much easier to use pb-and-k in a gradle build since the protoc-gen-kotlin binary wouldn't have to be compiled/installed manually.
Distribute the self-executable jar on maven central with a custom classifier (the protobuf gradle plugin doesn't provide any way to use an artifact with an empty classifier).
For example, if the self-executable jar is distributed as the com.github.cretz.pbandk:protoc-gen-kotlin artifact with a jvm8 classifier, then it could be used with the protobuf gradle plugin like this:
The protobuf gradle plugin supports downloading
protoc
plugins from maven central: https://github.com/google/protobuf-gradle-plugin#locate-external-executables. This would make it much easier to usepb-and-k
in a gradle build since theprotoc-gen-kotlin
binary wouldn't have to be compiled/installed manually.The requirements to enable this are:
Package
protoc-gen-kotlin
as a self-executable jar. For example, you can use something like the Spring Boot Gradle Plugin to create a fully executable archive.Distribute the self-executable jar on maven central with a custom classifier (the protobuf gradle plugin doesn't provide any way to use an artifact with an empty classifier).
For example, if the self-executable jar is distributed as the
com.github.cretz.pbandk:protoc-gen-kotlin
artifact with ajvm8
classifier, then it could be used with the protobuf gradle plugin like this:The text was updated successfully, but these errors were encountered: