Files
libmc/libmc-protocol/build.gradle.kts
T

46 lines
1.0 KiB
Kotlin
Raw Normal View History

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"))
api(project(":nbt"))
2026-09-05 00:17:22 +08:00
}
jvmMain.dependencies {
}
commonTest.dependencies {
implementation(kotlin("test"))
implementation(project(":protocol-context"))
2026-09-05 00:17:22 +08:00
implementation(libs.kotlinx.coroutines.test)
implementation(libs.ktor.network)
2026-09-05 00:17:22 +08:00
}
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
}
}