forked from bitcoinj/bitcoinj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
29 lines (25 loc) · 873 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.11" : "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()
maven {
url 'https://repo.maven.apache.org/maven2'
name 'Maven Central'
}
}
group = 'org.bitcoinj'
}