forked from MangoAutomation/BACnet4J
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (54 loc) · 1.69 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
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(Compile) {
options.encoding = 'UTF-8'
}
group = 'com.serotonin'
version = '4.1.4'
repositories {
jcenter()
}
dependencies {
compile 'ai.serotonin.oss:sero-scheduler:[1.1.0,2)'
compile 'ai.serotonin.oss:sero-warp:1.0.0'
compile 'org.apache.commons:commons-lang3:3.5'
compile 'org.scream3r:jssc:2.8.0'
compile 'org.slf4j:slf4j-api:[1.7.0,1.8)'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:[2.7.22,3)'
testCompile 'org.slf4j:slf4j-simple:[1.7.0,1.8)'
}
task sourceJar(group: 'build', type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allJava
}
task jacoco(group: 'verification', dependsOn: jacocoTestReport) {
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId 'bacnet4j'
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
test {
testLogging {
// Make sure output from standard out or error is shown in Gradle output.
showStandardStreams = true
// Or we use events method:
// events 'standard_out', 'standard_error'
// Or set property events:
// events = ['standard_out', 'standard_error']
// Instead of string values we can
// use enum values:
// events org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_OUT,
// org.gradle.api.tasks.testing.logging.TestLogEvent.STANDARD_ERROR,
}
}