Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / youpipe / extractor / build.gradle.kts
build.gradle.kts31 lines · 808 BRaw
| 1 | plugins { |
| 2 | id("common-conventions-jvm") |
| 3 | alias(libs.plugins.protobuf) |
| 4 | } |
| 5 | |
| 6 | dependencies { |
| 7 | // nanojson removed — replaced by kotlinx.serialization.json via common-conventions-jvm |
| 8 | implementation(libs.google.jsr305) |
| 9 | implementation(libs.protobuf.javalite) |
| 10 | implementation(libs.brotli.dec) |
| 11 | |
| 12 | testImplementation(libs.kotlin.test) |
| 13 | } |
| 14 | |
| 15 | protobuf { |
| 16 | protoc { |
| 17 | artifact = libs.protobuf.protoc.get().toString() |
| 18 | } |
| 19 | |
| 20 | generateProtoTasks { |
| 21 | all().forEach { task -> |
| 22 | task.builtins { |
| 23 | // `named`, not `create` as in :appstore: the JVM path already pre-registers the |
| 24 | // java builtin, and creating it a second time fails. |
| 25 | named("java") { |
| 26 | option("lite") |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |