50 lines
1.3 KiB
Kotlin
50 lines
1.3 KiB
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
description = "Kotlin KLIB Library Commonizer"
|
|
|
|
publish()
|
|
|
|
configurations {
|
|
testRuntimeOnly {
|
|
extendsFrom(compileOnly.get())
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:cli-common"))
|
|
compileOnly(project(":compiler:ir.serialization.common"))
|
|
compileOnly(project(":compiler:frontend"))
|
|
compileOnly(project(":native:frontend.native"))
|
|
compileOnly(project(":kotlin-util-klib-metadata"))
|
|
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
|
compileOnly(intellijDep()) { includeJars("trove4j") }
|
|
|
|
// This dependency is necessary to keep the right dependency record inside of POM file:
|
|
publishedCompile(project(":kotlin-compiler"))
|
|
|
|
api(kotlinStdlib())
|
|
|
|
testImplementation(commonDep("junit:junit"))
|
|
testImplementation(projectTests(":compiler:tests-common"))
|
|
}
|
|
|
|
val runCommonizer by tasks.registering(NoDebugJavaExec::class) {
|
|
classpath(configurations.compileOnly, sourceSets.main.get().runtimeClasspath)
|
|
main = "org.jetbrains.kotlin.descriptors.commonizer.cli.CommonizerCLI"
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
projectTest(parallel = true) {
|
|
dependsOn(":dist")
|
|
workingDir = rootDir
|
|
}
|
|
|
|
standardPublicJars()
|