From 1ba70d36108dfe85294de2caa3d352eabee23b6d Mon Sep 17 00:00:00 2001 From: "app-token-plugins[bot]" <116026991+app-token-plugins[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 12:57:38 -0600 Subject: [PATCH] Update connectrpc/kotlin to v0.7.2 (#1656) --- .../connectrpc/kotlin/v0.7.2/.dockerignore | 2 ++ plugins/connectrpc/kotlin/v0.7.2/Dockerfile | 15 ++++++++++ .../connectrpc/kotlin/v0.7.2/buf.plugin.yaml | 29 +++++++++++++++++++ .../connectrpc/kotlin/v0.7.2/eliza/plugin.sum | 1 + .../kotlin/v0.7.2/petapis/plugin.sum | 1 + 5 files changed, 48 insertions(+) create mode 100644 plugins/connectrpc/kotlin/v0.7.2/.dockerignore create mode 100644 plugins/connectrpc/kotlin/v0.7.2/Dockerfile create mode 100644 plugins/connectrpc/kotlin/v0.7.2/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/petapis/plugin.sum diff --git a/plugins/connectrpc/kotlin/v0.7.2/.dockerignore b/plugins/connectrpc/kotlin/v0.7.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/kotlin/v0.7.2/Dockerfile b/plugins/connectrpc/kotlin/v0.7.2/Dockerfile new file mode 100644 index 000000000..b94afe64f --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.2/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.12 +FROM debian:bookworm-20241223 AS build + +RUN apt-get update \ + && apt-get install -y curl +WORKDIR /app +RUN curl -fsSL -o /app/protoc-gen-connect-kotlin.jar https://repo1.maven.org/maven2/com/connectrpc/protoc-gen-connect-kotlin/0.7.2/protoc-gen-connect-kotlin-0.7.2.jar + +FROM gcr.io/distroless/java21-debian12:latest@sha256:903d5ad227a4afff8a207cd25c580ed059cc4006bb390eae65fb0361fc9724c3 as base + +FROM scratch +COPY --from=base --link / / +COPY --from=build --link --chmod=0755 --chown=root:root /app/protoc-gen-connect-kotlin.jar . +USER nobody +ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-connect-kotlin.jar"] diff --git a/plugins/connectrpc/kotlin/v0.7.2/buf.plugin.yaml b/plugins/connectrpc/kotlin/v0.7.2/buf.plugin.yaml new file mode 100644 index 000000000..772d6019a --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.7.2/buf.plugin.yaml @@ -0,0 +1,29 @@ +version: v1 +name: buf.build/connectrpc/kotlin +plugin_version: v0.7.2 +source_url: https://github.com/connectrpc/connect-kotlin +integration_guide_url: https://connectrpc.com/docs/kotlin/getting-started +description: Idiomatic gRPC & Connect RPCs for Kotlin. +deps: + - plugin: buf.build/protocolbuffers/kotlin:v29.2 +output_languages: + - kotlin +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-kotlin/blob/v0.7.2/LICENSE +registry: + opts: + - generateCallbackMethods=true + maven: + compiler: + kotlin: + version: 1.8.22 + deps: + - com.connectrpc:connect-kotlin:0.7.2 + - com.connectrpc:connect-kotlin-google-java-ext:0.7.2 + - com.connectrpc:connect-kotlin-okhttp:0.7.2 + additional_runtimes: + - name: lite + deps: + - com.connectrpc:connect-kotlin:0.7.2 + - com.connectrpc:connect-kotlin-google-javalite-ext:0.7.2 + - com.connectrpc:connect-kotlin-okhttp:0.7.2 diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/eliza/plugin.sum new file mode 100644 index 000000000..b77f0285d --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:jZozX+zN6UUwiUu38R4IG3BD2PFi7novwzYovV5V5mY= diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/petapis/plugin.sum new file mode 100644 index 000000000..c591f7283 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.7.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:qI/BZM1TvMxo1xA+W5Y+h5jGfuIHe2aFsVRriNpB/3M=