mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
* feat(cli): add Version var and version subcommand * build(gradle): introduce uatu.version property for lockstep releases * build(sdk-android): swap GitHub Packages for vanniktech Maven Central plugin * build(spec-api): make package publish-ready for npm * ci(release): add goreleaser config for cross-platform uatu CLI builds * ci: add ci and release GitHub Actions workflows * ci: restrict ci.yml to PR + workflow_dispatch (no direct push to master) * docs(release): add local release targets, env example, and install docs * build(sdk-android): make signAllPublications conditional on signing key * ci(release): stage sidecar JAR at embed path before go build * chore(spec-api): regenerate package-lock for updated package.json * ci: install protoc-gen-go plugins before buf generate * ci: bump Node to 22 (required for --experimental-strip-types)
81 lines
2.0 KiB
Kotlin
81 lines
2.0 KiB
Kotlin
import com.google.protobuf.gradle.id
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.1.21"
|
|
application
|
|
id("com.gradleup.shadow") version "9.0.0-rc2"
|
|
id("com.google.protobuf") version "0.9.5"
|
|
}
|
|
|
|
version = findProperty("uatu.version") as String? ?: "0.0.0-dev"
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
val grpcVersion = "1.68.0"
|
|
val protobufVersion = "3.25.5"
|
|
val maestroVersion = "1.40.0"
|
|
|
|
dependencies {
|
|
implementation("dev.mobile:maestro-client:$maestroVersion")
|
|
|
|
implementation("io.grpc:grpc-netty-shaded:$grpcVersion")
|
|
implementation("io.grpc:grpc-protobuf:$grpcVersion")
|
|
implementation("io.grpc:grpc-stub:$grpcVersion")
|
|
implementation("com.google.protobuf:protobuf-java:$protobufVersion")
|
|
implementation("javax.annotation:javax.annotation-api:1.3.2")
|
|
|
|
implementation("org.slf4j:slf4j-simple:2.0.16")
|
|
|
|
testImplementation(kotlin("test"))
|
|
testImplementation("io.grpc:grpc-testing:$grpcVersion")
|
|
testImplementation("io.grpc:grpc-inprocess:$grpcVersion")
|
|
testImplementation("junit:junit:4.13.2")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.3")
|
|
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.11.3")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.3")
|
|
}
|
|
|
|
protobuf {
|
|
protoc {
|
|
artifact = "com.google.protobuf:protoc:$protobufVersion"
|
|
}
|
|
plugins {
|
|
id("grpc") {
|
|
artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
|
|
}
|
|
}
|
|
generateProtoTasks {
|
|
all().forEach { task ->
|
|
task.plugins {
|
|
id("grpc")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
proto {
|
|
srcDir(rootProject.file("proto"))
|
|
}
|
|
}
|
|
}
|
|
|
|
application {
|
|
mainClass.set("dev.uatu.sidecar.MainKt")
|
|
}
|
|
|
|
// JUnit 4 (vintage) for the gRPC GrpcCleanupRule + JUnit 5 (jupiter)
|
|
// for the rest. UseJUnitPlatform with the vintage engine handles both.
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|