forked from owagner/knx2mqtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (35 loc) · 959 Bytes
/
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
version = '0.12'
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
targetCompatibility = 1.7
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 'com.github.calimero:calimero-core:2.2.1'
}
task listJars << {
configurations.compile.each { File file -> println file.name }
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } { exclude "META-INF/**" }
archiveName 'knx2mqtt.jar'
manifest {
attributes 'Main-Class': 'com.tellerulam.knx2mqtt.Main',
'Implementation-Title': 'knx2mqtt KNX to MQTT bridge',
'Implementation-Version': version
}
}
uploadArchives {
repositories {
flatDir {
dirs 'build'
}
}
}