2026-09-05 00:17:22 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
explicitApi()
|
|
|
|
|
withSourcesJar()
|
|
|
|
|
|
|
|
|
|
linuxX64()
|
|
|
|
|
linuxArm64()
|
|
|
|
|
macosArm64()
|
|
|
|
|
mingwX64()
|
|
|
|
|
jvm { compilerOptions.jvmTarget = JvmTarget.JVM_1_8 }
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
commonMain.dependencies {
|
2026-09-05 14:19:51 +08:00
|
|
|
api(project(":common"))
|
2026-09-05 16:35:47 +08:00
|
|
|
api(project(":nbt"))
|
2026-09-05 00:17:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jvmMain.dependencies {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
commonTest.dependencies {
|
|
|
|
|
implementation(kotlin("test"))
|
2026-09-08 01:16:01 +08:00
|
|
|
implementation(project(":protocol-context"))
|
2026-09-05 00:17:22 +08:00
|
|
|
implementation(libs.kotlinx.coroutines.test)
|
|
|
|
|
}
|
2026-09-07 03:15:53 +08:00
|
|
|
|
|
|
|
|
jvmTest.dependencies {
|
2026-09-07 10:07:10 +08:00
|
|
|
implementation(libs.ktor.client.okhttp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
linuxTest.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.curl)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mingwTest.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.winhttp)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
appleTest.dependencies {
|
|
|
|
|
implementation(libs.ktor.client.darwin)
|
2026-09-07 03:15:53 +08:00
|
|
|
}
|
2026-09-05 00:17:22 +08:00
|
|
|
}
|
|
|
|
|
}
|