Search Gradle plugins

Builds a library for Kotlin compiler plugins against many Kotlin compiler and IDE versions from one source tree.

https://github.com/Kotlin/compiler-plugin-dev-kit

Sources: https://github.com/Kotlin/compiler-plugin-dev-kit.git

Version 0.1.0 (latest)

Created 20 November 2026.

Builds a library for Kotlin compiler plugins against many Kotlin compiler and IDE versions from one source tree.

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library") version "0.1.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.kotlin.compiler.plugin.devkit.compiler-library:org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library.gradle.plugin:0.1.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library:org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library.gradle.plugin:0.1.0")
      }
    }
    
    apply(plugin = "org.jetbrains.kotlin.compiler.plugin.devkit.compiler-library")
  • Applying plugins to all subprojects .