-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (68 loc) · 1.63 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
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'jacoco'
id 'org.springframework.boot' version '1.5.22.RELEASE'
id 'io.spring.dependency-management' version "1.0.8.RELEASE"
}
defaultTasks 'clean', 'test', 'jacocoTestReport'
compileJava.options.encoding = 'UTF-8'
group = 'iot_ece448'
version = '1.0.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
buildDir = 'build'
repositories {
jcenter()
}
dependencies {
implementation(
'org.apache.httpcomponents:fluent-hc:4.5.9',
'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.2',
'org.springframework.boot:spring-boot-starter-web',
'org.xerial:sqlite-jdbc:3.7.2')
testImplementation('junit:junit:4.12')
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
task iot_sim(type: JavaExec, dependsOn: [test, jacocoTestReport]) {
classpath sourceSets.main.runtimeClasspath
main = 'ece448.iot_sim.Main'
if (project.hasProperty("config"))
args project.getProperty('config')
}
task iot_sim_ex(type: JavaExec, dependsOn: [test, jacocoTestReport]) {
classpath sourceSets.main.runtimeClasspath
main = 'ece448.iot_sim.Main'
args 'simConfigEx.json'
}
task iot_hub(type: JavaExec, dependsOn: [test, jacocoTestReport]) {
classpath sourceSets.main.runtimeClasspath
main = 'ece448.iot_hub.Main'
}
6.times { proj ->
task "grade_p$proj"(type: JavaExec, dependsOn: [test, jacocoTestReport]) {
classpath sourceSets.main.runtimeClasspath
main = "ece448.grading.GradeP$proj"
}
}
jacoco {
toolVersion = '0.8.5'
}