[K/N] Add SAM with receiver plugin
This commit is contained in:
committed by
Space
parent
c545fd5ef8
commit
a58e2459c6
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user