Skip to content

Commit d359d86

Browse files
Update grpc/java and pluginrpc/go (#2774)
### grpc - java: v1.84.0 → v1.84.1 ### pluginrpc - go: v0.5.0 → v0.6.0 - registry.go.min_version bumped: 1.21 → 1.26 (required by [pluginrpc.com/pluginrpc@v0.6.0 go.mod](https://proxy.golang.org/pluginrpc.com/pluginrpc/@v/v0.6.0.mod)) Co-authored-by: app-token-plugins[bot] <app-token-plugins[bot]@users.noreply.github.com>
1 parent 785b58d commit d359d86

11 files changed

Lines changed: 147 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*
2+
!Dockerfile
3+
!pom.xml
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# syntax=docker/dockerfile:1.27
2+
FROM debian:trixie-20260918@sha256:9cc080028c43b27d2074d63a5f9caf7166d731494965616c1a6d2827a004585c AS build
3+
4+
ARG TARGETARCH
5+
6+
WORKDIR /build
7+
RUN apt-get update \
8+
&& apt-get install -y curl
9+
RUN arch=${TARGETARCH}; \
10+
if [ "${arch}" = "arm64" ]; then\
11+
arch="aarch_64"; \
12+
elif [ "${arch}" = "amd64" ]; then\
13+
arch="x86_64"; \
14+
fi; \
15+
echo "${arch}"; \
16+
curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.84.1/protoc-gen-grpc-java-1.84.1-linux-${arch}.exe
17+
18+
FROM gcr.io/distroless/cc-debian13:latest@sha256:159783207c2cd44c2aa5715961d13c8612368ac9bd450f887e3f08fc8ea461e3 AS base
19+
20+
FROM maven:3.9.11-eclipse-temurin-21 AS maven-deps
21+
COPY pom.xml /tmp/pom.xml
22+
RUN cd /tmp && mvn -f pom.xml dependency:go-offline
23+
24+
FROM scratch
25+
COPY --link --from=base / /
26+
COPY --link --from=build --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java .
27+
COPY --from=maven-deps /root/.m2/repository /maven-repository
28+
USER nobody
29+
ENTRYPOINT [ "/protoc-gen-grpc-java" ]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: v1
2+
name: buf.build/grpc/java
3+
plugin_version: v1.84.1
4+
source_url: https://github.com/grpc/grpc-java
5+
integration_guide_url: https://grpc.io/docs/languages/java/quickstart
6+
description: Generates Java client and server stubs for the gRPC framework.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/java:v36.2
9+
output_languages:
10+
- java
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/grpc/grpc-java/blob/v1.84.1/LICENSE
13+
registry:
14+
maven:
15+
deps:
16+
- io.grpc:grpc-core:1.84.1
17+
- io.grpc:grpc-protobuf:1.84.1
18+
- io.grpc:grpc-stub:1.84.1
19+
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
20+
- com.google.protobuf:protobuf-java:4.36.2
21+
additional_runtimes:
22+
- name: lite
23+
deps:
24+
- io.grpc:grpc-core:1.84.1
25+
- io.grpc:grpc-protobuf-lite:1.84.1
26+
- io.grpc:grpc-stub:1.84.1
27+
# Add direct dependency on newer protobuf as gRPC is still on 3.25.8
28+
- com.google.protobuf:protobuf-javalite:4.36.2
29+
- build.buf:protobuf-javalite:4.36.2
30+
opts: [lite]

‎plugins/grpc/java/v1.84.1/pom.xml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<project>
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>temp</groupId>
4+
<artifactId>temp</artifactId>
5+
<version>1.0</version>
6+
<dependencies>
7+
<dependency>
8+
<groupId>io.grpc</groupId>
9+
<artifactId>grpc-core</artifactId>
10+
<version>1.84.1</version>
11+
</dependency>
12+
<dependency>
13+
<groupId>io.grpc</groupId>
14+
<artifactId>grpc-protobuf</artifactId>
15+
<version>1.84.1</version>
16+
</dependency>
17+
<dependency>
18+
<groupId>io.grpc</groupId>
19+
<artifactId>grpc-stub</artifactId>
20+
<version>1.84.1</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.google.protobuf</groupId>
24+
<artifactId>protobuf-java</artifactId>
25+
<version>4.36.2</version>
26+
</dependency>
27+
<!-- lite -->
28+
<dependency>
29+
<groupId>io.grpc</groupId>
30+
<artifactId>grpc-protobuf-lite</artifactId>
31+
<version>1.84.1</version>
32+
</dependency>
33+
<dependency>
34+
<groupId>com.google.protobuf</groupId>
35+
<artifactId>protobuf-javalite</artifactId>
36+
<version>4.36.2</version>
37+
</dependency>
38+
<dependency>
39+
<groupId>build.buf</groupId>
40+
<artifactId>protobuf-javalite</artifactId>
41+
<version>4.36.2</version>
42+
</dependency>
43+
</dependencies>
44+
</project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.27
2+
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:3b77fc618ec235a1ab412de7737f120dd507c57e8d87de4cbb7994fb94275ed5 AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags="-s -w" -trimpath pluginrpc.com/pluginrpc/cmd/protoc-gen-pluginrpc-go@v0.6.0 \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pluginrpc-go /go/bin/protoc-gen-pluginrpc-go || true
10+
11+
FROM scratch
12+
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-pluginrpc-go .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-pluginrpc-go" ]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: v1
2+
name: buf.build/pluginrpc/go
3+
plugin_version: v0.6.0
4+
source_url: https://github.com/pluginrpc/pluginrpc-go
5+
integration_guide_url: https://github.com/pluginrpc/pluginrpc-go#usage
6+
description: Plugin to generate Go stubs for Protobuf services, designed to work with PluginRPC, a Protobuf-based RPC framework for plugins.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/go:v1.36.12
9+
output_languages:
10+
- go
11+
registry:
12+
go:
13+
min_version: "1.26"
14+
deps:
15+
- module: pluginrpc.com/pluginrpc
16+
version: v0.6.0
17+
opts:
18+
- paths=source_relative
19+
spdx_license_id: Apache-2.0
20+
license_url: https://github.com/pluginrpc/pluginrpc-go/blob/v0.6.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:abVqnZfKuwUcrLQyb+Lu2QqyVxyEnfIosZqrc8Lv/f0=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:LtrVq0lTE5qfsjeZj2BqKoPibzJpnzDsSY/jO/SrmoY=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:EXDz03HCgobKWj5woohM9JTyvVl1DUkCxcel28y3eo0=

0 commit comments

Comments
 (0)