forked from temporalio/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (69 loc) · 3.37 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
ext {
palantirGitVersionVersion = "${JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_11) ? '0.15.0' : '0.13.0'}"
kotlinVersion = "${project.hasProperty("edgeDepsTest") ? '1.8.20' : (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.3.0'
id 'com.diffplug.spotless' version '6.18.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.22'
// id 'org.jetbrains.kotlin.jvm' version '1.8.20'
id 'org.jetbrains.kotlin.jvm' version "${kotlinVersion}" apply false
id 'base'
}
allprojects {
repositories {
mavenCentral()
}
}
ext {
// Platforms
grpcVersion = '1.54.1' // [1.38.0,) Needed for io.grpc.protobuf.services.HealthStatusManager
jacksonVersion = '2.14.2' // [2.9.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.
micrometerVersion = project.hasProperty("edgeDepsTest") ? '1.10.5' : '1.9.9' // [1.0.0,)
// stay on 1.x for a while to don't use any APIs from 2.x which may break our users which still stay on 1.x
// also slf4j 2.x is not compatible with spring boot 2.x
slf4jVersion = project.hasProperty("edgeDepsTest") ? '2.0.6' : '1.7.36' // [1.4.0,)
// [3.12.0,)
// 3.12 is brought by min gRPC 1.38.
// We can't move pass 3.22.0 because 3.22.2 deprecates some methods used by generated code produced by
// the old protoc we keep for compatibility of our generated code with old protobuf-java versions.
// Which leads to build failure because of -Werror.
protoVersion = '3.22.0'
annotationApiVersion = '1.3.2'
guavaVersion = '31.1-jre' // [10.0,)
tallyVersion = '0.13.0' // [0.4.0,)
gsonVersion = '2.10.1' // [2.0,)
jsonPathVersion = '2.8.0' // compileOnly
cronUtilsVersion = '9.2.1' // for test server only
// Spring Boot 3 requires Java 17, java-sdk builds against 2.x version because we support Java 8.
// We do test compatibility with Spring Boot 3 in integration tests.
springBootVersion = project.hasProperty("edgeDepsTest") ? '3.0.4' : '2.7.9'// [2.4.0,)
// test scoped
// we don't upgrade to 1.3 and 1.4 because they require slf4j 2.x
logbackVersion = project.hasProperty("edgeDepsTest") ? '1.3.5' : '1.2.11'
mockitoVersion = '5.2.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"
}