Drive by fix, to handle some collisions with later protobuf imports. Moves to the more recent 3.x version of the protobuf APIs, and uses the non-deprecated print system.
diff --git a/MODULE.bazel b/MODULE.bazel index b6a5bf1..374f149 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -52,8 +52,8 @@ artifacts = [ "com.google.code.findbugs:jsr305:3.0.2", "junit:junit:4.13-beta-3", - "com.google.protobuf:protobuf-java:3.6.0", - "com.google.protobuf:protobuf-java-util:3.6.0", + "com.google.protobuf:protobuf-java:3.25.6", + "com.google.protobuf:protobuf-java-util:3.26.6", "com.google.guava:guava:27.1-jre", "com.google.truth:truth:0.45", "com.google.auto.service:auto-service:1.1.1",
diff --git a/src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt b/src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt index 3676806..c9da019 100644 --- a/src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt +++ b/src/main/kotlin/io/bazel/kotlin/builder/toolchain/CompilationTaskContext.kt
@@ -93,7 +93,7 @@ header: String, msg: MessageOrBuilder, ) { - printLines(header, TextFormat.printToString(msg).split("\n"), filterEmpty = true) + printLines(header, TextFormat.printer().printToString(msg).split("\n"), filterEmpty = true) } /**