@@ -6,6 +6,7 @@ import nu.studer.gradle.jooq.JooqGenerate
6
6
import org.flywaydb.gradle.task.FlywayMigrateTask
7
7
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
8
8
import org.springframework.boot.gradle.tasks.bundling.BootJar
9
+ import java.io.ByteArrayOutputStream
9
10
import java.net.InetAddress
10
11
import java.net.Socket
11
12
import java.time.Instant
@@ -21,6 +22,7 @@ val postgresPort: Int by rootProject.extra
21
22
val jooqSchema = rootProject.extra[" schema" ] as String
22
23
val jooqMigrationDir = " $projectDir /src/main/resources/db/migration/postgresql"
23
24
val jooqVersion = rootProject.ext[" jooqVersion" ] as String
25
+ val kotestVersion = rootProject.ext[" kotestVersion" ] as String
24
26
val openDataDiscoveryOpenApiDir = layout.buildDirectory.dir(" generated/source/odd" ).get()
25
27
project.version = if (gradle.startParameter.taskNames.any { it.lowercase() == " builddocker" }) {
26
28
" ${project.version} -SNAPSHOT"
@@ -44,7 +46,7 @@ dependencies {
44
46
// Dependencies managed by Spring
45
47
implementation(" org.springframework.boot:spring-boot-starter-jooq" )
46
48
// TODO remove once we upgrade Spring: override SnakeYAML dependency, as the one managed by Spring is too old and is vulnerable
47
- implementation(" org.yaml:snakeyaml:2.0 " )
49
+ implementation(" org.yaml:snakeyaml:2.2 " )
48
50
implementation(" org.flywaydb:flyway-core" )
49
51
implementation(" org.jetbrains.kotlin:kotlin-reflect" )
50
52
implementation(" org.postgresql:postgresql" )
@@ -60,28 +62,35 @@ dependencies {
60
62
61
63
// Self-managed dependencies
62
64
implementation(" net.devh:grpc-server-spring-boot-starter:2.15.0.RELEASE" )
63
- implementation(" com.databricks:databricks-sdk-java:0.10 .0" )
65
+ implementation(" com.databricks:databricks-sdk-java:0.13 .0" )
64
66
implementation(" com.github.drapostolos:type-parser:0.8.1" )
65
- implementation(" com.microsoft.sqlserver:mssql-jdbc:12.4.2.jre8 " )
67
+ implementation(" com.microsoft.sqlserver:mssql-jdbc:12.4.2.jre11 " )
66
68
67
- implementation(" com.nimbusds:nimbus-jose-jwt:9.37" )
68
- implementation(" org.bouncycastle:bcpkix-jdk18on:1.76 " )
69
+ implementation(" com.nimbusds:nimbus-jose-jwt:9.37.1 " )
70
+ implementation(" org.bouncycastle:bcpkix-jdk18on:1.77 " )
69
71
70
- implementation(enforcedPlatform(" com.google.cloud:libraries-bom:26.24 .0" ))
72
+ implementation(enforcedPlatform(" com.google.cloud:libraries-bom:26.27 .0" ))
71
73
implementation(" com.google.cloud:google-cloud-bigquery" )
72
74
implementation(" com.google.cloud:google-cloud-datacatalog" )
73
75
74
76
implementation(" build.buf.gen:getstrm_pace_grpc_java:1.59.0.2.$generatedBufDependencyVersion " )
75
77
implementation(" build.buf.gen:getstrm_pace_grpc_kotlin:1.4.1.1.$generatedBufDependencyVersion " )
76
- implementation(" build.buf.gen:getstrm_pace_protocolbuffers_java:24.4 .0.1.$generatedBufDependencyVersion " )
77
- implementation(" build.buf:protovalidate:0.1.6 " )
78
+ implementation(" build.buf.gen:getstrm_pace_protocolbuffers_java:25.1 .0.1.$generatedBufDependencyVersion " )
79
+ implementation(" build.buf:protovalidate:0.1.8 " )
78
80
79
81
implementation(" com.apollographql.apollo3:apollo-runtime:3.8.2" )
80
82
83
+ implementation(" com.aallam.openai:openai-client:3.6.1" )
84
+ implementation(platform(" io.ktor:ktor-bom:2.3.6" ))
85
+ runtimeOnly(" io.ktor:ktor-client-okhttp" )
86
+ implementation(" io.ktor:ktor-client-logging" )
87
+
81
88
// Test dependencies
82
- testImplementation(" org.springframework.boot:spring-boot-starter-test" )
83
- testImplementation(" io.kotest:kotest-assertions-core-jvm:5.7.2" )
84
- testImplementation(" io.kotest:kotest-runner-junit5:5.7.2" )
89
+ testImplementation(" org.springframework.boot:spring-boot-starter-test" ) {
90
+ exclude(group = " com.vaadin.external.google" , module = " android-json" )
91
+ }
92
+ testImplementation(" io.kotest:kotest-assertions-core-jvm:$kotestVersion " )
93
+ testImplementation(" io.kotest:kotest-runner-junit5:$kotestVersion " )
85
94
testImplementation(" io.mockk:mockk:1.13.8" )
86
95
testImplementation(" io.zonky.test:embedded-postgres:2.0.4" )
87
96
}
@@ -308,11 +317,27 @@ val createProtoDescriptor =
308
317
val copyDocker =
309
318
tasks.register<Copy >(" copyDocker" ) {
310
319
group = " docker"
320
+ val grpcServices: String = ByteArrayOutputStream ().use { outputStream ->
321
+ project.exec {
322
+ workingDir(" $rootDir /protos" )
323
+
324
+ commandLine(
325
+ " bash" ,
326
+ " -c" ,
327
+ " buf build -o -#format=json | jq -rc '.file | map(select(.name | startswith(\" getstrm\" ))) | map(select(.service > 0) | (.package + \" .\" + .service[].name))'"
328
+ )
329
+ standardOutput = outputStream
330
+ }
331
+
332
+ outputStream.toString()
333
+ }
334
+
311
335
from(" src/main/docker" )
312
336
include(" *" )
313
337
into(" build/docker" )
314
338
expand(
315
339
" version" to project.version,
340
+ " grpcServices" to grpcServices,
316
341
)
317
342
}
318
343
0 commit comments