Files
kotlin-fork/plugins/sam-with-receiver/sam-with-receiver-cli/build.gradle.kts
T
2017-09-19 21:37:22 +02:00

39 lines
739 B
Kotlin

description = "Kotlin SamWithReceiver Compiler Plugin"
apply { plugin("kotlin") }
dependencies {
val compileOnly by configurations
val runtime by configurations
compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java"))
compileOnly(project(":compiler:plugin-api"))
runtime(project(":kotlin-compiler", configuration = "runtimeJar"))
runtime(project(":kotlin-stdlib"))
}
sourceSets {
"main" { projectDefault() }
"test" { none() }
}
val jar = runtimeJar {
from(fileTree("$projectDir/src")) { include("META-INF/**") }
}
sourcesJar()
javadocJar()
publish()
dist {
from(jar)
rename("^kotlin-", "")
}
ideaPlugin {
from(jar)
rename("^kotlin-", "")
}