kotlinx.rpc 0.10.2 Help

Gradle plugin

The kotlinx.rpc library provides a Gradle plugin that applies the compiler-plugin artifacts and exposes the rpc extension. The extension covers compiler diagnostics, strict-mode reporting, and optional protoc-based code generation.

plugins { kotlin("jvm") version "2.3.0" id("org.jetbrains.kotlinx.rpc.plugin") version "0.10.1" }

The plugin exposes the rpc extension:

rpc { annotationTypeSafetyEnabled = true protoc { // gRPC / protobuf schema-first code generation } }

Top-level capabilities:

annotationTypeSafetyEnabled

Controls annotation type-safety checks. See Annotation type-safety.

strict

Configures strict-mode reporting for deprecated RPC patterns. See Strict mode.

protoc() / protoc { ... }

Enables Buf/protoc integration for schema-first protobuf and gRPC code generation. See Configuration.

Last modified: 10 March 2026