From 4a3d764f0f2677850cba2c814b70dfaf7b883892 Mon Sep 17 00:00:00 2001 From: Alex Tymchenko Date: Tue, 2 Jan 2024 14:30:15 +0000 Subject: [PATCH] Suppress a warning. --- .../io/spine/internal/gradle/protobuf/ProtoTaskExtensions.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildSrc/src/main/kotlin/io/spine/internal/gradle/protobuf/ProtoTaskExtensions.kt b/buildSrc/src/main/kotlin/io/spine/internal/gradle/protobuf/ProtoTaskExtensions.kt index a9d00595..0c4c8b41 100644 --- a/buildSrc/src/main/kotlin/io/spine/internal/gradle/protobuf/ProtoTaskExtensions.kt +++ b/buildSrc/src/main/kotlin/io/spine/internal/gradle/protobuf/ProtoTaskExtensions.kt @@ -127,6 +127,8 @@ fun GenerateProtoTask.setup() { * however, it is not possible to use this plugin (or its code) * in this repository due to cyclic dependencies. */ +@Suppress( + "TooGenericExceptionCaught" /* Handling all file-writing failures in the same way.*/) private fun GenerateProtoTask.setupDescriptorSetFileCreation() { // Tell `protoc` generate descriptor set file. // The name of the generated file reflects project's Maven coordinates.