-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.gradle
45 lines (38 loc) · 980 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
43
44
45
version = '0.13'
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 files(
'lib/huelocalsdk.jar',
'lib/huesdkresources.jar'
)
}
task listJars << {
configurations.compile.each { File file -> println file.name }
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } { exclude "META-INF/**" }
archiveName 'hue2mqtt.jar'
manifest {
attributes 'Main-Class': 'com.tellerulam.hue2mqtt.Main',
'Implementation-Title': 'hue2mqtt Hue to MQTT bridge',
'Implementation-Version': version
}
}
uploadArchives {
repositories {
flatDir {
dirs 'build'
}
}
}