From ffec38289cbf0eff26d1b9ce4c22ca0b8ed90e73 Mon Sep 17 00:00:00 2001 From: Alan Chiu Date: Wed, 22 Feb 2023 09:55:56 -0800 Subject: [PATCH] Add connect-kotlin plugin (#371) https://github.com/bufbuild/connect-kotlin --------- Co-authored-by: Philip K. Warren Co-authored-by: Philip K. Warren --- plugins/bufbuild/connect-kotlin/.dockerignore | 2 ++ plugins/bufbuild/connect-kotlin/source.yaml | 4 ++++ plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore | 2 ++ plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile | 11 +++++++++++ .../bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml | 11 +++++++++++ .../bufbuild/connect-kotlin/v0.1.1/eliza/plugin.sum | 1 + .../bufbuild/connect-kotlin/v0.1.1/petapis/plugin.sum | 1 + 7 files changed, 32 insertions(+) create mode 100644 plugins/bufbuild/connect-kotlin/.dockerignore create mode 100644 plugins/bufbuild/connect-kotlin/source.yaml create mode 100644 plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore create mode 100644 plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile create mode 100644 plugins/bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/petapis/plugin.sum diff --git a/plugins/bufbuild/connect-kotlin/.dockerignore b/plugins/bufbuild/connect-kotlin/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-kotlin/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-kotlin/source.yaml b/plugins/bufbuild/connect-kotlin/source.yaml new file mode 100644 index 000000000..d3c1a4385 --- /dev/null +++ b/plugins/bufbuild/connect-kotlin/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: connect-kotlin diff --git a/plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore b/plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/connect-kotlin/v0.1.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile b/plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile new file mode 100644 index 000000000..fc3f80fde --- /dev/null +++ b/plugins/bufbuild/connect-kotlin/v0.1.1/Dockerfile @@ -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"] diff --git a/plugins/bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml b/plugins/bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml new file mode 100644 index 000000000..4fdcd9657 --- /dev/null +++ b/plugins/bufbuild/connect-kotlin/v0.1.1/buf.plugin.yaml @@ -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 diff --git a/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/eliza/plugin.sum new file mode 100644 index 000000000..9852eda1f --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:FI2MrUOiuLhuiCRRKun/ZfbRS8icI66PfHVvL0+qe6M= diff --git a/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/petapis/plugin.sum new file mode 100644 index 000000000..2d9f25f65 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-kotlin/v0.1.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:dEgosZqAS6OH6/YNlonq7Lvp0tdvMu4gK9FZqkSyYGw=