-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
92 lines (70 loc) · 2.65 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
/*
* Copyright (c) 2020 Charlie Condorcet engineer student.
*
* 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.
*/
// 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 = 'C:\\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"
}
}