mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-07 01:21:37 +00:00
36 lines
1.1 KiB
Kotlin
36 lines
1.1 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
// Pure Kotlin/JVM module: hub wire types, chat pipeline, pagination/window logic,
|
|
// patch application, BindLink parsing. NO Android dependencies -- tests run in
|
|
// milliseconds on any JVM and validate against shared/fixtures/** golden files.
|
|
plugins {
|
|
alias(libs.plugins.kotlin.jvm)
|
|
alias(libs.plugins.kotlin.serialization)
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_17)
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(libs.kotlinx.serialization.json)
|
|
|
|
testImplementation(libs.junit)
|
|
testImplementation(libs.kotlin.test)
|
|
testImplementation(libs.kotlinx.coroutines.test)
|
|
}
|
|
|
|
tasks.test {
|
|
// Golden fixtures live at the repo root (outside the Gradle root dir).
|
|
// Track K (M2) drops conformance fixtures into shared/fixtures/; protocol
|
|
// tests read them via this system property -- no build changes needed then.
|
|
systemProperty("hapi.fixtures.dir", rootDir.parentFile.resolve("shared/fixtures").absolutePath)
|
|
}
|