-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathbuild.gradle
More file actions
66 lines (59 loc) · 1.64 KB
/
build.gradle
File metadata and controls
66 lines (59 loc) · 1.64 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath(
"gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.5.3",
"com.github.ben-manes:gradle-versions-plugin:0.13.0",
"gradle.plugin.de.fuerstenau:BuildConfigPlugin:1.1.4",
"net.ltgt.gradle:gradle-apt-plugin:0.21",
"com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3",
)
}
}
subprojects {
apply plugin: "java"
apply plugin: "maven"
apply plugin: "idea"
apply plugin: "signing"
apply plugin: "com.palantir.git-version"
apply plugin: "com.github.ben-manes.versions"
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
// Set the group and version across all subprojects to ensure consistency
group 'com.clarifai.clarifai-api2'
def details = versionDetails()
def tag = details.lastTag.replace(".dirty", "")
if (details.commitDistance != 0) {
tag = tag + '-' + details.gitHash
}
version tag
println("Computed version as: ${getVersion()}")
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
ext.versions = [
autoValue: "1.5.2",
autoValueWith: "1.0.0",
customHashCodeEquals: "db3442d",
grpc: "1.17.1",
gson: "2.8.5",
javaxAnnotationApi: "1.3.2",
okhttp: "3.12.0",
protobuf: "3.6.1",
protobufJavaUtil: "3.6.1",
junit: "4.12",
junitRetryRule: "cbdd972",
slf4j: "1.7.21",
]
ext.deps = [
nullityAnnotations: "org.jetbrains:annotations:16.0.3",
]
}
wrapper {
gradleVersion = "4.10.3"
}