-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
63 lines (54 loc) · 1.49 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
version = '0.29'
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://repo.eclipse.org/content/repositories/paho-releases/'
}
}
dependencies {
compile 'com.eclipsesource.minimal-json:minimal-json:0.9.4'
compile 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.0.2'
compile 'org.quartz-scheduler:quartz:2.2.2'
compile('com.joestelmach:natty:0.12') {
exclude module: 'antlr'
exclude module: 'backport-util-concurrent'
exclude module: 'stringtemplate'
}
compile 'com.sun.mail:javax.mail:1.5.5'
testCompile 'junit:junit:4.11'
}
task listJars << {
configurations.compile.each { File file -> println file.name }
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } { exclude "META-INF/**" }
archiveName 'logic4mqtt.jar'
manifest {
attributes 'Main-Class': 'com.tellerulam.logic4mqtt.Main',
'Implementation-Title': 'logic4mqtt Logic Engine',
'Implementation-Version': version
}
}
task generateApiDocs(type: Javadoc) {
source = fileTree("src/main/java/com/tellerulam/logic4mqtt/api").matching {
exclude "InstanceManager.java"
}
destinationDir = file("apidocs")
options.setMemberLevel(JavadocMemberLevel.PUBLIC)
}
uploadArchives {
repositories {
flatDir {
dirs 'target'
}
}
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}