Search Gradle plugins

org.jetbrains.kotlinx.rpc.plugin

The plugin ensures correct RPC configurations for your project, that will allow proper code generation. Additionally, it enforces proper artifacts versions for your project, depending on your Kotlin version. Resulting versions of the kotlinx.rpc dependencies will be 'kotlinVersion-kotlinxRpcVersion', for example '1.9.24-0.2.0', where '0.2.0' is the kotlinx.rpc version.

https://kotlinlang.org

Sources: https://github.com/Kotlin/kotlinx-rpc

Version 0.3.0

Created 01 October 2024.

The plugin ensures correct RPC configurations for your project, that will allow proper code generation. Additionally, it applies the kotlinx.rpc BOM file for the project.

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.jetbrains.kotlinx.rpc.plugin") version "0.3.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("org.jetbrains.kotlinx.rpc.plugin:org.jetbrains.kotlinx.rpc.plugin.gradle.plugin:0.3.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.jetbrains.kotlinx.rpc.plugin")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.jetbrains.kotlinx.rpc.plugin:org.jetbrains.kotlinx.rpc.plugin.gradle.plugin:0.3.0")
      }
    }
    
    apply(plugin = "org.jetbrains.kotlinx.rpc.plugin")
  • Applying plugins to all subprojects .