Skip to content

Commit

Permalink
Add connect-kotlin plugin (#371)
Browse files Browse the repository at this point in the history
https://github.com/bufbuild/connect-kotlin

---------

Co-authored-by: Philip K. Warren <[email protected]>
Co-authored-by: Philip K. Warren <[email protected]>
  • Loading branch information
3 people authored Feb 22, 2023
1 parent d73fd0a commit ffec382
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-kotlin/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
4 changes: 4 additions & 0 deletions plugins/bufbuild/connect-kotlin/source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source:
github:
owner: bufbuild
repository: connect-kotlin
2 changes: 2 additions & 0 deletions plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# syntax=docker/dockerfile:1.4
FROM gradle:7.4.0-jdk17 AS build
WORKDIR /app
RUN git clone --depth 1 --branch v0.1.1 https://github.com/bufbuild/connect-kotlin.git
WORKDIR /app/connect-kotlin
RUN gradle --no-daemon -g $(pwd) protoc-gen-connect-kotlin:jar

FROM gcr.io/distroless/java17-debian11
WORKDIR /app
COPY --from=build /app/connect-kotlin/protoc-gen-connect-kotlin/build/libs/protoc-gen-connect-kotlin.jar /app
CMD ["/app/protoc-gen-connect-kotlin.jar"]
11 changes: 11 additions & 0 deletions plugins/bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: v1
name: buf.build/bufbuild/connect-kotlin
plugin_version: v0.1.1
source_url: https://github.com/bufbuild/connect-kotlin
description: Idiomatic gRPC & Connect RPCs for Kotlin.
deps:
- plugin: buf.build/protocolbuffers/java:v21.12
output_languages:
- kotlin
spdx_license_id: Apache-2.0
license_url: https://github.com/bufbuild/connect-kotlin/blob/v0.1.1/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:FI2MrUOiuLhuiCRRKun/ZfbRS8icI66PfHVvL0+qe6M=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:dEgosZqAS6OH6/YNlonq7Lvp0tdvMu4gK9FZqkSyYGw=

0 comments on commit ffec382

Please sign in to comment.