-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (41 loc) · 1.5 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
import java.util.stream.Collectors
plugins {
id 'application'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
credentials {
username = artifactoryUser ?: System.getProperty('user.name')
password = artifactoryAPIKey ?: ''
}
url "https://illumon.jfrog.io/illumon/libs-customer"
}
}
dependencies {
// DHC dependencies
implementation platform("io.deephaven:deephaven-bom:${dhcVersion}")
runtimeOnly "io.deephaven:deephaven-log-to-slf4j"
runtimeOnly 'ch.qos.logback:logback-classic:1.4.12'
// END DHC dependencies
implementation "iris:client-barrage:$dheVersion"
}
application {
mainClassName = 'org.example.ClientExample'
applicationDefaultJvmArgs = ["-DConfiguration.rootFile=dh-defaults.prop",
"-DDeephavenEnterprise.rootFile=iris-common.prop",
"--add-opens=java.base/java.nio=ALL-UNNAMED"]
}
test {
useJUnitPlatform()
}
tasks.register("printDependenciesList") {
// This is like './gradlew dependencies', except it prints a list of dependencies instead of a tree.
List<ResolvedArtifact> allDeps = project.configurations.runtimeClasspath.resolvedConfiguration.resolvedArtifacts.stream().sorted(Comparator.comparing({ ResolvedArtifact a -> a.owner.toString()})).collect(Collectors.toList())
for (ResolvedArtifact dep : allDeps) {
println dep.owner
}
println "Printed ${allDeps.size()} dependencies."
}