diff --git a/plugins/connectrpc/kotlin/v0.8.2/.dockerignore b/plugins/connectrpc/kotlin/v0.8.2/.dockerignore new file mode 100644 index 000000000..7ff6309df --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.8.2/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!pom.xml diff --git a/plugins/connectrpc/kotlin/v0.8.2/Dockerfile b/plugins/connectrpc/kotlin/v0.8.2/Dockerfile new file mode 100644 index 000000000..902f12e2e --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.8.2/Dockerfile @@ -0,0 +1,20 @@ +# syntax=docker/dockerfile:1.23 +FROM debian:trixie-20260505@sha256:e2d08da6f42ef4b09b165d55528a12727aeed8240dc9edf888e3ec07e10ef9da 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.8.2/protoc-gen-connect-kotlin-0.8.2.jar + +FROM gcr.io/distroless/java25-debian13:latest@sha256:583ba2e08558063002bd1b5874a81b33b7204a0ad46727d4b6cbeff5a25935ba as base + +FROM maven:3.9.11-eclipse-temurin-21 AS maven-deps +COPY pom.xml /tmp/pom.xml +RUN cd /tmp && mvn -f pom.xml dependency:go-offline + +FROM scratch +COPY --from=base --link / / +COPY --from=build --link --chmod=0755 --chown=root:root /app/protoc-gen-connect-kotlin.jar . +COPY --from=maven-deps /root/.m2/repository /maven-repository +USER nobody +ENTRYPOINT [ "/usr/bin/java", "-jar", "/protoc-gen-connect-kotlin.jar"] diff --git a/plugins/connectrpc/kotlin/v0.8.2/buf.plugin.yaml b/plugins/connectrpc/kotlin/v0.8.2/buf.plugin.yaml new file mode 100644 index 000000000..1fc0c98cc --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.8.2/buf.plugin.yaml @@ -0,0 +1,30 @@ +version: v1 +name: buf.build/connectrpc/kotlin +plugin_version: v0.8.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:v35.0 +output_languages: + - kotlin +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-kotlin/blob/v0.8.2/LICENSE +registry: + opts: + - generateCallbackMethods=true + maven: + compiler: + kotlin: + api_version: "2.1" + version: "2.2.21" + deps: + - com.connectrpc:connect-kotlin:0.8.2 + - com.connectrpc:connect-kotlin-google-java-ext:0.8.2 + - com.connectrpc:connect-kotlin-okhttp:0.8.2 + additional_runtimes: + - name: lite + deps: + - com.connectrpc:connect-kotlin:0.8.2 + - com.connectrpc:connect-kotlin-google-javalite-ext:0.8.2 + - com.connectrpc:connect-kotlin-okhttp:0.8.2 diff --git a/plugins/connectrpc/kotlin/v0.8.2/pom.xml b/plugins/connectrpc/kotlin/v0.8.2/pom.xml new file mode 100644 index 000000000..c1f9b5033 --- /dev/null +++ b/plugins/connectrpc/kotlin/v0.8.2/pom.xml @@ -0,0 +1,76 @@ + + 4.0.0 + temp + temp + 1.0 + + + com.connectrpc + connect-kotlin + 0.8.2 + + + com.connectrpc + connect-kotlin-google-java-ext + 0.8.2 + + + com.connectrpc + connect-kotlin-okhttp + 0.8.2 + + + com.google.protobuf + protobuf-kotlin + 4.35.0 + + + org.jetbrains.kotlin + kotlin-stdlib + 2.2.21 + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 2.2.21 + + + com.google.protobuf + protobuf-java + 4.35.0 + + + + com.connectrpc + connect-kotlin-google-javalite-ext + 0.8.2 + + + com.google.protobuf + protobuf-kotlin-lite + 4.35.0 + + + com.google.protobuf + protobuf-javalite + 4.35.0 + + + build.buf + protobuf-javalite + 4.35.0 + + + + + + org.jetbrains.kotlin + kotlin-maven-plugin + 2.2.21 + + 2.1 + + + + + diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/eliza/plugin.sum new file mode 100644 index 000000000..b77f0285d --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:jZozX+zN6UUwiUu38R4IG3BD2PFi7novwzYovV5V5mY= diff --git a/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/petapis/plugin.sum new file mode 100644 index 000000000..c591f7283 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/kotlin/v0.8.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:qI/BZM1TvMxo1xA+W5Y+h5jGfuIHe2aFsVRriNpB/3M=