@@ -5,6 +5,9 @@ import org.gradle.plugin.use.PluginDependenciesSpec
55object Versions {
66 const val clikt = "5.0.0"
77 const val detekt = "1.23.7"
8+ const val gradle_protobuf = "0.9.5"
9+ const val grpc = "1.72.0"
10+ const val grpc_kotlin = "1.4.3"
811 const val ini4j = "0.5.4"
912 const val jacodb = "5889d3c784"
1013 const val juliet = "1.3.2"
@@ -15,12 +18,16 @@ object Versions {
1518 const val kotlinx_coroutines = "1.10.0"
1619 const val kotlinx_serialization = "1.7.3"
1720 const val ksmt = "0.5.26"
21+ const val ktor = "3.1.3"
1822 const val logback = "1.4.8"
1923 const val mockk = "1.13.4"
24+ const val protobuf = "4.30.2"
2025 const val rd = "2023.2.0"
2126 const val sarif4k = "0.5.0"
2227 const val shadow = "8.3.3"
2328 const val slf4j = "1.6.1"
29+ const val wire = "5.3.1"
30+ const val wire_grpc_server = "1.0.0-alpha04"
2431
2532 // versions for jvm samples
2633 object Samples {
@@ -116,7 +123,8 @@ object Libs {
116123 )
117124
118125 // https://github.com/UnitTestBot/jacodb
119- private const val jacodbPackage = "com.github.UnitTestBot.jacodb" // use "org.jacodb" with includeBuild
126+ // private const val jacodbPackage = "com.github.UnitTestBot.jacodb" // use "org.jacodb" with includeBuild
127+ private const val jacodbPackage = "org.jacodb"
120128 val jacodb_core = dep(
121129 group = jacodbPackage,
122130 name = "jacodb-core",
@@ -173,14 +181,14 @@ object Libs {
173181 )
174182
175183 // https://github.com/Kotlin/kotlinx.serialization
176- val kotlinx_serialization_core = dep(
184+ val kotlinx_serialization_json = dep(
177185 group = "org.jetbrains.kotlinx",
178- name = "kotlinx-serialization-core ",
186+ name = "kotlinx-serialization-json ",
179187 version = Versions.kotlinx_serialization
180188 )
181- val kotlinx_serialization_json = dep(
189+ val kotlinx_serialization_protobuf = dep(
182190 group = "org.jetbrains.kotlinx",
183- name = "kotlinx-serialization-json ",
191+ name = "kotlinx-serialization-protobuf ",
184192 version = Versions.kotlinx_serialization
185193 )
186194
@@ -248,6 +256,52 @@ object Libs {
248256 name = "clikt",
249257 version = Versions.clikt
250258 )
259+
260+ // https://github.com/grpc/grpc-java
261+ val grpc_api = dep(
262+ group = "io.grpc",
263+ name = "grpc-api",
264+ version = Versions.grpc
265+ )
266+ val grpc_protobuf = dep(
267+ group = "io.grpc",
268+ name = "grpc-protobuf",
269+ version = Versions.grpc
270+ )
271+ val grpc_stub = dep(
272+ group = "io.grpc",
273+ name = "grpc-stub",
274+ version = Versions.grpc
275+ )
276+ val grpc_netty_shaded = dep(
277+ group = "io.grpc",
278+ name = "grpc-netty-shaded",
279+ version = Versions.grpc
280+ )
281+
282+ // https://github.com/square/wire
283+ val wire_runtime = dep(
284+ group = "com.squareup.wire",
285+ name = "wire-runtime",
286+ version = Versions.wire
287+ )
288+ val wire_grpc_client = dep(
289+ group = "com.squareup.wire",
290+ name = "wire-grpc-client",
291+ version = Versions.wire
292+ )
293+
294+ // https://github.com/square/wire-grpc-server
295+ val wire_grpc_server = dep(
296+ group = "com.squareup.wiregrpcserver",
297+ name = "server",
298+ version = Versions.wire_grpc_server
299+ )
300+ val wire_grpc_server_generator = dep(
301+ group = "com.squareup.wiregrpcserver",
302+ name = "server-generator",
303+ version = Versions.wire_grpc_server
304+ )
251305}
252306
253307object Plugins {
@@ -271,6 +325,18 @@ object Plugins {
271325 id = "com.gradleup.shadow",
272326 version = Versions.shadow
273327 )
328+
329+ // https://github.com/google/protobuf-gradle-plugin
330+ object GradleProtobuf : ProjectPlugin(
331+ id = "com.google.protobuf",
332+ version = Versions.gradle_protobuf
333+ )
334+
335+ // https://github.com/square/wire
336+ object Wire : ProjectPlugin(
337+ version = Versions.wire,
338+ id = "com.squareup.wire"
339+ )
274340}
275341
276342fun PluginDependenciesSpec.id(plugin: Plugins.ProjectPlugin) {
0 commit comments