[K/N] Add SAM with receiver plugin

This commit is contained in:
Alexander Shabalin
2022-05-13 17:13:04 +03:00
committed by Space
parent c545fd5ef8
commit a58e2459c6
@@ -12,17 +12,28 @@ plugins {
// due to https://github.com/gradle/gradle/issues/1697. // due to https://github.com/gradle/gradle/issues/1697.
id("kotlin") id("kotlin")
groovy groovy
`kotlin-dsl`
`java-gradle-plugin` `java-gradle-plugin`
} }
buildscript { buildscript {
val rootBuildDirectory by extra(project.file("../..")) val rootBuildDirectory by extra(project.file("../.."))
repositories {
project.bootstrapKotlinRepo?.let {
maven(url = it)
}
}
apply(from = rootBuildDirectory.resolve("kotlin-native/gradle/loadRootProperties.gradle")) apply(from = rootBuildDirectory.resolve("kotlin-native/gradle/loadRootProperties.gradle"))
dependencies { dependencies {
classpath(commonDependency("com.google.code.gson:gson")) classpath(commonDependency("com.google.code.gson:gson"))
classpath("org.jetbrains.kotlin:kotlin-sam-with-receiver:${project.bootstrapKotlinVersion}")
} }
} }
apply {
plugin("kotlin-sam-with-receiver")
}
val rootProperties = Properties().apply { val rootProperties = Properties().apply {
project(":kotlin-native").projectDir.resolve("gradle.properties").reader().use(::load) project(":kotlin-native").projectDir.resolve("gradle.properties").reader().use(::load)