-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.gradle.kts
149 lines (124 loc) · 5.5 KB
/
settings.gradle.kts
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id("com.gradle.enterprise").version("3.15.1")
}
// Include the subprojects
include(":common")
include(":suites")
include(":stream")
include(":server")
include(":simulator")
include(":tools")
includeBuild(".") // https://github.com/gradle/gradle/issues/21490#issuecomment-1458887481
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
// Define a constant for the platform SDK version.
// Platform SDK modules are all released together with matching versions.
val swirldsVersion = "0.54.1"
// Define a constant for the Dagger version.
val daggerVersion = "2.42"
// Define a constant for protobuf version.
val protobufVersion = "4.28.2"
val helidonVersion = "4.1.1"
// Compile time dependencies
version("io.helidon.webserver.http2", helidonVersion)
version("io.helidon.webserver", helidonVersion)
version("io.helidon.logging", helidonVersion)
version("com.lmax.disruptor", "4.0.0")
version("com.github.spotbugs.annotations", "4.7.3")
version("com.swirlds.metrics.api", swirldsVersion)
version("com.swirlds.metrics.impl", swirldsVersion)
version("com.swirlds.common", swirldsVersion)
version("com.swirlds.config.impl", swirldsVersion)
version("com.swirlds.config.processor", swirldsVersion)
version("com.swirlds.config.extensions", swirldsVersion)
version("com.google.auto.service.processor", "1.1.1")
version("com.google.auto.service", "1.1.1")
version("org.hyperledger.besu.nativelib.secp256k1", "0.8.2")
version("info.picocli", "4.7.6")
// gRPC dependencies for the stream subproject
version("io.grpc", "1.65.1")
version("io.grpc.protobuf", "1.65.1")
version("io.grpc.stub", "1.65.1")
// netty dependency for the simulator subproject
version("io.grpc.netty.shaded", "1.65.1")
// Reference from the protobuf plugin
version("google.proto", protobufVersion)
version("grpc.protobuf.grpc", "1.65.1")
// Google protobuf dependencies
version("com.google.protobuf", protobufVersion)
version("com.google.protobuf.util", protobufVersion)
var pbjVersion = "0.9.10"
// PBJ dependencies
plugin("pbj", "com.hedera.pbj.pbj-compiler").version(pbjVersion)
version("com.hedera.pbj.runtime", pbjVersion)
version("com.hedera.pbj.grpc.helidon", pbjVersion)
version("com.hedera.pbj.grpc.helidon.config", pbjVersion)
version("org.antlr.antlr4.runtime", "4.13.1")
version("java.annotation", "1.3.2")
version("javax.inject", "1")
version("com.google.common", "33.0.0-jre")
version("org.apache.commons.codec", "1.15")
version("org.apache.commons.collections4", "4.4")
version("org.apache.commons.io", "2.15.1")
version("org.apache.commons.lang3", "3.14.0")
version("org.apache.commons.compress", "1.26.0")
version("org.apache.logging.log4j.slf4j2.impl", "2.21.1")
// needed for dagger
version("dagger", daggerVersion)
version("dagger.compiler", daggerVersion)
version("com.squareup.javapoet", "1.13.0")
// Testing only versions
version("org.assertj.core", "3.23.1")
version("org.junit.jupiter.api", "5.10.2")
version("org.junit.platform", "1.11.0")
version("org.mockito", "5.8.0")
version("org.mockito.junit.jupiter", "5.8.0")
version("org.testcontainers", "1.20.1")
version("org.testcontainers.junit-jupiter", "1.20.1")
version("com.github.docker-java", "3.4.0")
version("io.github.cdimascio", "5.2.2")
}
}
}
// Build cache configuration
val isCiServer = System.getenv().containsKey("CI")
val gradleCacheUsername: String? = System.getenv("GRADLE_CACHE_USERNAME")
val gradleCachePassword: String? = System.getenv("GRADLE_CACHE_PASSWORD")
val gradleCacheAuthorized =
(gradleCacheUsername?.isNotEmpty() ?: false) && (gradleCachePassword?.isNotEmpty() ?: false)
buildCache {
remote<HttpBuildCache> {
url = uri("https://cache.gradle.hedera.svcs.eng.swirldslabs.io/cache/")
isPush = isCiServer && gradleCacheAuthorized
isUseExpectContinue = true
isEnabled = !gradle.startParameter.isOffline
if (isCiServer && gradleCacheAuthorized) {
credentials {
username = gradleCacheUsername
password = gradleCachePassword
}
}
}
}