forked from temporalio/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 2.41 KB
/
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
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 {
ext {
palantirGitVersionVersion = "${JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11) ? '0.15.0' : '0.13.0'}"
kotlinVersion = "${JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_16) ? '1.5.32' : '1.4.32'}"
}
}
plugins {
id 'net.ltgt.errorprone' version '3.0.1' apply false
id 'org.cadixdev.licenser' version '0.6.1'
id 'com.palantir.git-version' version "${palantirGitVersionVersion}" apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
id 'com.diffplug.spotless' version '6.11.0' apply false
id 'com.github.nbaztec.coveralls-jacoco' version "1.2.15" apply false
// id 'org.jetbrains.kotlin.jvm' version '1.4.32'
// id 'org.jetbrains.kotlin.jvm' version '1.5.32'
// id 'org.jetbrains.kotlin.jvm' version '1.6.21'
// id 'org.jetbrains.kotlin.jvm' version '1.7.20'
id 'org.jetbrains.kotlin.jvm' version "${kotlinVersion}" apply false
id 'base'
}
allprojects {
repositories {
mavenCentral()
}
}
ext {
// Platforms
grpcVersion = '1.51.0' // [1.34.0,)
jacksonVersion = '2.14.0' // [2.9.0,)
micrometerVersion = '1.9.6' // [1.0.0,) // we don't upgrade to 1.10.x because it requires kotlin 1.6. Users may use 1.10.x in their environments though.
slf4jVersion = '1.7.36' // [1.4.0,) // stay on 1.x for a while to don't use any APIs from 2.x which may break our users which stay on 1.x
protoVersion = '3.21.9' // [3.10.0,)
annotationApiVersion = '1.3.2'
guavaVersion = '31.1-jre' // [10.0,)
tallyVersion = '0.11.1' // [0.4.0,)
gsonVersion = '2.10' // [2.0,)
jsonPathVersion = '2.7.0' // compileOnly
springBootVersion = '2.7.5'// [2.4.0,)
// test scoped
logbackVersion = '1.2.11' // we don't upgrade to 1.3 and 1.4 because they require slf4j 2.x
mockitoVersion = '4.9.0'
junitVersion = '4.13.2'
}
apply from: "$rootDir/gradle/versioning.gradle"
apply from: "$rootDir/gradle/java.gradle"
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11)) {
apply from: "$rootDir/gradle/linting.gradle"
}
apply from: "$rootDir/gradle/errorprone.gradle"
apply from: "$rootDir/gradle/licensing.gradle"
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/dependencyManagement.gradle"
apply from: "$rootDir/gradle/gatherDependencies.gradle"
if (project.hasProperty("jacoco")) {
apply from: "$rootDir/gradle/jacoco.gradle"
}