From a4d6986488da0d57a1ee18d54fc6622c23de160b Mon Sep 17 00:00:00 2001 From: "app-token-plugins[bot]" <116026991+app-token-plugins[bot]@users.noreply.github.com> Date: Fri, 17 Nov 2023 10:07:23 -0600 Subject: [PATCH] Update grpc/kotlin to v1.4.1 (#917) --- plugins/grpc/kotlin/v1.4.1/.dockerignore | 2 ++ plugins/grpc/kotlin/v1.4.1/Dockerfile | 14 +++++++++++ plugins/grpc/kotlin/v1.4.1/buf.plugin.yaml | 24 +++++++++++++++++++ .../grpc/kotlin/v1.4.1/eliza/plugin.sum | 1 + .../grpc/kotlin/v1.4.1/petapis/plugin.sum | 1 + 5 files changed, 42 insertions(+) create mode 100644 plugins/grpc/kotlin/v1.4.1/.dockerignore create mode 100644 plugins/grpc/kotlin/v1.4.1/Dockerfile create mode 100644 plugins/grpc/kotlin/v1.4.1/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/grpc/kotlin/v1.4.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/kotlin/v1.4.1/petapis/plugin.sum diff --git a/plugins/grpc/kotlin/v1.4.1/.dockerignore b/plugins/grpc/kotlin/v1.4.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/kotlin/v1.4.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/kotlin/v1.4.1/Dockerfile b/plugins/grpc/kotlin/v1.4.1/Dockerfile new file mode 100644 index 000000000..da6a8faeb --- /dev/null +++ b/plugins/grpc/kotlin/v1.4.1/Dockerfile @@ -0,0 +1,14 @@ +# syntax=docker/dockerfile:1.4 +FROM debian:bullseye-20231030 AS build + +ARG TARGETARCH + +WORKDIR /build +RUN apt-get update \ + && apt-get install -y curl +RUN curl -fsSL -o protoc-gen-grpc-kotlin.jar https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-kotlin/1.4.1/protoc-gen-grpc-kotlin-1.4.1-jdk8.jar + +FROM gcr.io/distroless/java11-debian11 +COPY --from=build --link --chmod=0644 --chown=root:root /build/protoc-gen-grpc-kotlin.jar . +USER nobody +ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-grpc-kotlin.jar" ] diff --git a/plugins/grpc/kotlin/v1.4.1/buf.plugin.yaml b/plugins/grpc/kotlin/v1.4.1/buf.plugin.yaml new file mode 100644 index 000000000..9f2e0aa1c --- /dev/null +++ b/plugins/grpc/kotlin/v1.4.1/buf.plugin.yaml @@ -0,0 +1,24 @@ +version: v1 +name: buf.build/grpc/kotlin +plugin_version: v1.4.1 +source_url: https://github.com/grpc/grpc-kotlin +integration_guide_url: https://grpc.io/docs/languages/kotlin/quickstart +description: Generates Kotlin client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/grpc/java:v1.59.0 + - plugin: buf.build/protocolbuffers/kotlin:v24.4 +output_languages: + - kotlin +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-kotlin/blob/v1.4.1/LICENSE +registry: + maven: + compiler: + kotlin: + version: 1.8.22 + deps: + - io.grpc:grpc-kotlin-stub:1.4.1 + - org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.3 + additional_runtimes: + - name: lite + opts: [lite] diff --git a/tests/testdata/buf.build/grpc/kotlin/v1.4.1/eliza/plugin.sum b/tests/testdata/buf.build/grpc/kotlin/v1.4.1/eliza/plugin.sum new file mode 100644 index 000000000..2f2779222 --- /dev/null +++ b/tests/testdata/buf.build/grpc/kotlin/v1.4.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:eGkdYnWmOE6Hw+ctlTJR9Ual4tgbdXC0sx26StBg5GY= diff --git a/tests/testdata/buf.build/grpc/kotlin/v1.4.1/petapis/plugin.sum b/tests/testdata/buf.build/grpc/kotlin/v1.4.1/petapis/plugin.sum new file mode 100644 index 000000000..df630f345 --- /dev/null +++ b/tests/testdata/buf.build/grpc/kotlin/v1.4.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:BLbOuNRdRzQfNjfUsjpcuq1IeExdjug5p3FlndTUbW0=