Search Gradle plugins

Version 1.7.20 (latest)

Created 29 September 2022.

Kotlin Sam-with-receiver compiler plugin

Using the plugins DSL:

plugins {
  id "org.jetbrains.kotlin.plugin.sam.with.receiver" version "1.7.20"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jetbrains.kotlin:kotlin-sam-with-receiver:1.7.20"
  }
}

apply plugin: "org.jetbrains.kotlin.plugin.sam.with.receiver"

Using the plugins DSL:

plugins {
  id("org.jetbrains.kotlin.plugin.sam.with.receiver") version "1.7.20"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jetbrains.kotlin:kotlin-sam-with-receiver:1.7.20")
  }
}

apply(plugin = "org.jetbrains.kotlin.plugin.sam.with.receiver")

Learn how to apply plugins to subprojects