Gradle pluginEdit pageLast modified: 13 June 2025The kotlinx.rpc library offers a Gradle plugin that simplifies project configuration by automating repetitive tasks and configuring code generation.plugins { kotlin("jvm") version "2.2.0" id("org.jetbrains.kotlinx.rpc.plugin") version "0.9.1" }noteFor multi-project setups you must add the plugin to all modules where services are declared or used. Plugin provides an rpc extension: rpc { annotationTypeSafetyEnabled = true }Options:annotationTypeSafetyEnabled - whether to enable type safety checks for annotations. See Annotation type-safety.