forked from zeroc-ice/ice-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (52 loc) · 1.4 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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
def demoIceGridProject(name) {
project(name) {
slice {
java {
include = ["${projectDir}"]
srcDir = '.'
}
}
sourceSets {
main {
java {
srcDir '.'
}
}
}
dependencies {
implementation "com.zeroc:ice-compat:${project.iceArtifactVersion}"
implementation "com.zeroc:icegrid-compat:${project.iceArtifactVersion}"
implementation "com.zeroc:icelocatordiscovery-compat:${project.iceArtifactVersion}"
runtimeOnly "org.apache.commons:commons-compress:1.14"
}
task makeDbDirs {
doLast {
file('db/registry').mkdirs()
file('db/node').mkdirs()
}
}
compileJava.dependsOn(makeDbDirs)
clean {
delete 'db'
}
// Don't create the default jar.
jar.enabled = false
}
}
demoIceGridProject(":demoIceGridSimple")
demoIceGridProject(":demoIceGridIcebox")
project(":demoIceGridSimple") {
demoJar("client")
demoJar("server")
}
project(":demoIceGridIcebox") {
dependencies {
implementation "com.zeroc:icebox-compat:${project.iceArtifactVersion}"
}
demoJar("client")
demoJar("service")
demoIceBoxServer()
}