-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (35 loc) · 960 Bytes
/
build.gradle
File metadata and controls
42 lines (35 loc) · 960 Bytes
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.6'
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.neuronrobotics:nrjavaserial:3.11.0'
}
task listJars << {
configurations.compile.each { File file -> println file.name }
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } { exclude "META-INF/**" }
archiveName 'eno2mqtt.jar'
manifest {
attributes 'Main-Class': 'com.tellerulam.eno2mqtt.Main',
'Implementation-Title': 'eno2mqtt Enocean to MQTT bridge',
'Implementation-Version': version
}
}
uploadArchives {
repositories {
flatDir {
dirs 'build'
}
}
}