Skip to content

Commit 20c0515

Browse files
committed
chore: update gRPC dependency to use api configuration for better propagation
- Changed the gRPC dependency in core and demo modules to use the 'api' configuration for proper proto file propagation. - Updated the versioning format for the gRPC dependency in core to align with the latest build conventions.
1 parent 30a5f88 commit 20c0515

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

core/build.gradle

+7-6
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,24 @@ dependencies {
2929

3030
implementation("ch.qos.logback:logback-classic")
3131

32-
implementation('build.buf.gen:tcn_exileapi_grpc_java:1.72.0.1.20250430054428.7687114e0ed0')
32+
// uses exileapi v1.0.1 - NOTE: you must use api to propagate the proto files to the other projects
33+
api("build.buf.gen:tcn_exileapi_grpc_java:${grpcVersion}.1.20250501194345.3318b54a20ec")
3334

3435
implementation("net.java.dev.jna:jna")
3536
implementation("io.methvin:directory-watcher")
3637

3738
implementation("com.zaxxer:HikariCP:5.1.0")
3839

3940
// gRPC client dependencies only (no server)
40-
implementation("io.grpc:grpc-protobuf:${grpcVersion}")
41-
implementation("io.grpc:grpc-services:${grpcVersion}") {
41+
api("io.grpc:grpc-protobuf:${grpcVersion}")
42+
api("io.grpc:grpc-services:${grpcVersion}") {
4243
exclude group: "io.grpc", module: "grpc-health-service"
4344
}
44-
implementation("io.grpc:grpc-stub:${grpcVersion}")
45+
api("io.grpc:grpc-stub:${grpcVersion}")
4546
compileOnly("org.apache.tomcat:annotations-api:6.0.53")
4647
runtimeOnly("io.grpc:grpc-netty-shaded:${grpcVersion}")
47-
implementation("com.google.protobuf:protobuf-java-util:${protobufVersion}")
48-
implementation("org.bouncycastle:bcpkix-jdk18on:1.78.1")
48+
api("com.google.protobuf:protobuf-java-util:${protobufVersion}")
49+
api("org.bouncycastle:bcpkix-jdk18on:1.78.1")
4950

5051
// Add SnakeYAML for YAML configuration support
5152
runtimeOnly("org.yaml:snakeyaml")

demo/build.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ dependencies {
3636

3737
// Import multitenant module
3838
implementation(project(":core"))
39-
implementation('build.buf.gen:tcn_exileapi_grpc_java:1.72.0.1.20250430054428.7687114e0ed0')
4039
implementation(project(":logback-ext"))
4140

4241
// Reactor for reactive streams

0 commit comments

Comments
 (0)