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=