e18b77af21
- move preparation into separate projects - rename projects for publishing - add compiler plugins
52 lines
1.4 KiB
Kotlin
52 lines
1.4 KiB
Kotlin
|
|
description = "Kotlin SourceSections Compiler Plugin"
|
|
|
|
apply { plugin("kotlin") }
|
|
|
|
dependencies {
|
|
val compile by configurations
|
|
val compileOnly by configurations
|
|
val testCompile by configurations
|
|
val testCompileOnly by configurations
|
|
val testRuntime by configurations
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":compiler:frontend.script"))
|
|
compileOnly(project(":compiler:plugin-api"))
|
|
testCompile(project(":compiler:frontend"))
|
|
testCompile(project(":compiler:frontend.script"))
|
|
testCompile(project(":compiler:plugin-api"))
|
|
testCompile(project(":compiler.tests-common"))
|
|
testCompile(commonDep("junit:junit"))
|
|
testCompile(project(":compiler:util"))
|
|
testCompile(project(":compiler:cli"))
|
|
testCompile(project(":compiler:cli-common"))
|
|
testCompile(project(":compiler:frontend.java"))
|
|
testCompile(project(":compiler:daemon-common"))
|
|
testCompile(project(":compiler:daemon-client"))
|
|
}
|
|
|
|
configureKotlinProjectSourcesDefault()
|
|
configureKotlinProjectResources("src") {
|
|
include("META-INF/**")
|
|
}
|
|
configureKotlinProjectTestsDefault()
|
|
|
|
val jar = runtimeJar()
|
|
sourcesJar()
|
|
javadocJar()
|
|
|
|
publish()
|
|
|
|
dist {
|
|
from(jar)
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
dependsOnTaskIfExistsRec("dist", project = rootProject)
|
|
workingDir = rootDir
|
|
systemProperty("idea.is.unit.test", "true")
|
|
environment("NO_FS_ROOTS_ACCESS_CHECK", "true")
|
|
ignoreFailures = true
|
|
}
|
|
|