Files
kotlin-fork/plugins/sam-with-receiver/sam-with-receiver-cli/build.gradle.kts
T
2018-03-02 03:15:28 +03:00

49 lines
1.0 KiB
Kotlin

description = "Kotlin SamWithReceiver Compiler Plugin"
apply { plugin("kotlin") }
apply { plugin("jps-compatible") }
dependencies {
compileOnly(project(":compiler:frontend"))
compileOnly(project(":compiler:frontend.java"))
compileOnly(project(":compiler:plugin-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testCompile(project(":compiler:backend"))
testCompile(project(":compiler:cli"))
testCompile(project(":compiler:tests-common"))
testCompile(projectTests(":compiler:tests-common"))
testCompile(commonDep("junit:junit"))
}
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
}
val jar = runtimeJar {
from(fileTree("$projectDir/src")) { include("META-INF/**") }
}
sourcesJar()
javadocJar()
testsJar {}
publish()
dist {
rename("kotlin-", "")
}
ideaPlugin {
from(jar)
}
projectTest {
dependsOn(":kotlin-stdlib:jvm-minimal-for-test:dist")
workingDir = rootDir
doFirst {
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
}
}