bitcoinj/build.gradle
Andreas Schildbach db9dd488a2 build.gradle: revert "update protobuf-gradle-plugin to 0.9.1"
This reverts commit 3c2d199ac6.
It isn't compatible with our Gradle 7.x-based CI builds.
2023-04-24 10:57:08 +02:00

25 lines
758 B
Groovy

import org.gradle.util.GradleVersion
buildscript {
repositories {
mavenCentral()
}
// 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"
if (isGradle7) {
System.err.println "Warning: Using com.google.protobuf:protobuf-gradle-plugin:${gradleProtobufVersion} because ${GradleVersion.current()}"
}
dependencies {
classpath "com.google.protobuf:protobuf-gradle-plugin:${gradleProtobufVersion}"
}
}
allprojects {
repositories {
mavenCentral()
}
group = 'org.bitcoinj'
}