forked from cicavey/jzwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (62 loc) · 2.03 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
70
71
72
version = '0.0.1'
group = 'net.rauros.jzwave'
ext.description = "Java Z-Wave"
ext.author = 'Chris Cavey'
ext.email = '[email protected]'
ext.startYear = '2012'
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'osgi'
apply plugin: 'eclipse'
apply plugin: 'maven'
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:+'
}
}
apply plugin: 'license'
license {
header rootProject.file('LICENSE.header')
ext.year = project.ext.startYear + '-' + Calendar.getInstance().get(Calendar.YEAR)
ext.name = project.ext.author
ext.email = project.ext.email
ext.product = project.name
}
task openzwaveConfigExport(type: net.rauros.groovy.ExportConfig)
compileJava.dependsOn(openzwaveConfigExport)
repositories {
flatDir {
dirs 'lib'
}
mavenCentral()
}
dependencies {
compile group: 'com.neuronrobotics', name: 'nrjavaserial', version: '3.8.+'
compile group: 'com.google.guava', name: 'guava', version: '+'
compile group: 'org.slf4j', name: 'slf4j-api', version: '+'
compile group: 'joda-time', name: 'joda-time', version: '+'
compile group: 'ch.qos.logback', name: 'logback-core', version: '+'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '+'
compile group: 'ch.qos.logback', name: 'logback-access', version: '+'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
jar {
manifest { // the manifest of the default jar is of type OsgiManifest
instruction '-nouses', 'true'
instruction 'Bundle-Symbolic', project.group
instruction 'Bundle-Vendor', project.name
instruction 'Bundle-Description', project.ext.description
instruction 'Import-Package', '!javax.xml.*', "*"
}
}
task(zwaveListen, dependsOn: 'classes', type: JavaExec) {
group = 'zwave'
description = 'Listen on Z-Wave interface and write output to console'
main = 'net.rauros.jzwave.junit.TestEnumerate'
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.runtimeClasspath
args project.hasProperty('transport') ? project.transport : 'x'
}