build.gradle: update protobuf-gradle-plugin to 0.9.1

This commit is contained in:
Andreas Schildbach 2023-04-23 11:40:47 +02:00
parent abbd7b5ac6
commit 3c2d199ac6

View File

@ -6,7 +6,7 @@ buildscript {
}
// If using Gradle 7, use the compatible protobuf plugin, else use the one that works with oldest supported Gradle
boolean isGradle7 = GradleVersion.current().compareTo(GradleVersion.version("7.0")) >= 0
def gradleProtobufVersion = isGradle7 ? "0.8.18" : "0.8.10"
def gradleProtobufVersion = isGradle7 ? "0.9.1" : "0.8.10"
if (isGradle7) {
System.err.println "Warning: Using com.google.protobuf:protobuf-gradle-plugin:${gradleProtobufVersion} because ${GradleVersion.current()}"
}