Expands SDK support to 8 additional languages/frameworks: - Java SDK with Maven/OkHttp/Jackson - Kotlin SDK with Gradle/Ktor/kotlinx.serialization - Swift SDK with Swift Package Manager/async-await - C SDK with CMake/libcurl - C++ SDK with CMake/Modern C++20 - C# SDK with .NET 8.0/HttpClient - Ruby SDK with Bundler/Faraday - Rust SDK with Cargo/reqwest/tokio All SDKs include: - Tensor operations (matmul, conv2d, attention) - LLM inference with streaming support - Model registry, pricing, and usage APIs - Builder patterns where idiomatic - Full type safety
51 lines
1.3 KiB
Kotlin
51 lines
1.3 KiB
Kotlin
plugins {
|
|
kotlin("jvm") version "1.9.21"
|
|
kotlin("plugin.serialization") version "1.9.21"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "io.synor"
|
|
version = "0.1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// Kotlin
|
|
implementation(kotlin("stdlib"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
|
|
|
|
// HTTP Client
|
|
implementation("io.ktor:ktor-client-core:2.3.7")
|
|
implementation("io.ktor:ktor-client-cio:2.3.7")
|
|
implementation("io.ktor:ktor-client-content-negotiation:2.3.7")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7")
|
|
|
|
// Testing
|
|
testImplementation(kotlin("test"))
|
|
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
|
|
testImplementation("io.mockk:mockk:1.13.8")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
from(components["java"])
|
|
pom {
|
|
name.set("Synor Compute SDK")
|
|
description.set("Kotlin SDK for Synor Compute - Distributed Heterogeneous Computing")
|
|
url.set("https://github.com/synor/synor-compute-kotlin")
|
|
}
|
|
}
|
|
}
|
|
}
|