pubsub/build.gradle.kts (35 lines of code) (raw):

import org.gradle.api.tasks.testing.logging.TestLogEvent.* plugins { application kotlin("jvm") version "1.9.23" id("com.github.johnrengelman.shadow") version "8.1.1" } repositories { mavenCentral() } dependencies { implementation(platform("com.google.cloud:libraries-bom:26.34.0")) implementation("com.google.cloud:google-cloud-core") implementation("com.google.cloud:google-cloud-pubsub") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0") testImplementation("com.google.truth:truth:1.4.2") testImplementation("org.jetbrains.kotlin:kotlin-test-junit") // see: https://github.com/googleapis/sdk-platform-java/pull/1832 modules { module("com.google.guava:listenablefuture") { replacedBy("com.google.guava:guava", "listenablefuture is part of guava") } } } kotlin { jvmToolchain(17) } tasks.withType<Test> { testLogging { showStandardStreams = true exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL events(STARTED, PASSED, SKIPPED, FAILED) } } application { mainClass.set("pubsubKt") }