mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-01-18 13:22:42 +01:00
build.gradle: update protobuf-gradle-plugin to 0.9.4 (if Gradle 7 or later)
This commit is contained in:
parent
21549306ad
commit
2feff27339
@ -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.4" : "0.8.10"
|
||||
if (isGradle7) {
|
||||
System.err.println "Warning: Using com.google.protobuf:protobuf-gradle-plugin:${gradleProtobufVersion} because ${GradleVersion.current()}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user