[K/N] Add SAM with receiver plugin

(cherry picked from commit a58e2459c6)
This commit is contained in:
Alexander Shabalin
2022-05-13 17:13:04 +03:00
committed by Space
parent 987930a0e5
commit 00892c2903
@@ -12,17 +12,28 @@ plugins {
// due to https://github.com/gradle/gradle/issues/1697.
id("kotlin")
groovy
`kotlin-dsl`
`java-gradle-plugin`
}
buildscript {
val rootBuildDirectory by extra(project.file("../.."))
repositories {
project.bootstrapKotlinRepo?.let {
maven(url = it)
}
}
apply(from = rootBuildDirectory.resolve("kotlin-native/gradle/loadRootProperties.gradle"))
dependencies {
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 {
project(":kotlin-native").projectDir.resolve("gradle.properties").reader().use(::load)