-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (78 loc) · 3.17 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
* MIT License
*
* Copyright (c) 2020 Jorge Ignacio Pizarro Tapia
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
// Install the gradle Ice Builder plug-in from the plug-in portal
plugins {
// https://plugins.gradle.org/plugin/com.zeroc.gradle.ice-builder.slice
id 'com.zeroc.gradle.ice-builder.slice' version '1.4.7' apply false
// https://plugins.gradle.org/plugin/com.github.ben-manes.versions
id 'com.github.ben-manes.versions' version '0.28.0' apply true
}
// The root project
group 'cl.disc.ucn.pdis'
version '0.0.5'
subprojects {
// Apply Java and Ice Builder plug-ins to all sub-projects
apply plugin: 'java'
apply plugin: 'com.zeroc.gradle.ice-builder.slice'
// Java code version
sourceCompatibility = 1.8
// Testing configuration
test {
// Enable JUnit Platform (a.k.a. JUnit 5) support
useJUnitPlatform()
// failFast = true
// Run the test in parallel
systemProperty 'junit.jupiter.execution.parallel.enabled', 'true'
systemProperty 'junit.jupiter.execution.parallel.mode.default', 'concurrent'
}
// Both Client and Server projects share the *.ice Slice definitions
slice {
// The home of ice
iceHome = 'X:\\Program Files\\ZeroC\\Ice-3.7.3\\'
java {
files = [file("../slice/domain.ice")]
args = "--debug"
logger.lifecycle("Slicing file: <${files}>")
}
}
// Use Ice JAR files from maven central repository
repositories {
mavenCentral()
}
// Both Client and Server depend only on Ice JAR
dependencies {
// JUnit
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0-M1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0-M1'
// Zero ICE
implementation 'com.zeroc:ice:3.7.3'
// SLF4J
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha5'
// Apache Commons Lang
implementation 'org.apache.commons:commons-lang3:3.10'
// ZonedTimeDate (Java 8 in Java 7)
// implementation "org.threeten:threetenbp:1.4.4"
}
}