47 lines
1.1 KiB
Kotlin
47 lines
1.1 KiB
Kotlin
description = "Kotlin Daemon Client"
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
val nativePlatformVariants = listOf(
|
|
"windows-amd64",
|
|
"windows-i386",
|
|
"osx-amd64",
|
|
"osx-i386",
|
|
"linux-amd64",
|
|
"linux-i386",
|
|
"freebsd-amd64-libcpp",
|
|
"freebsd-amd64-libstdcpp",
|
|
"freebsd-i386-libcpp",
|
|
"freebsd-i386-libstdcpp"
|
|
)
|
|
|
|
dependencies {
|
|
api(kotlinStdlib())
|
|
compileOnly(project(":daemon-common"))
|
|
compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
|
|
|
|
embedded(project(":daemon-common")) { isTransitive = false }
|
|
embedded(commonDependency("net.rubygrapefruit", "native-platform"))
|
|
nativePlatformVariants.forEach {
|
|
embedded(commonDependency("net.rubygrapefruit", "native-platform", "-$it"))
|
|
}
|
|
testImplementation(platform(libs.junit.bom))
|
|
testImplementation(libs.junit.jupiter.api)
|
|
testRuntimeOnly(libs.junit.jupiter.engine)
|
|
}
|
|
|
|
projectTest(jUnitMode = JUnitMode.JUnit5) {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
configureKotlinCompileTasksGradleCompatibility()
|
|
|
|
publish()
|
|
|
|
runtimeJar()
|
|
sourcesJar()
|
|
javadocJar()
|