-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (37 loc) · 1.29 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
group 'com.robo4j'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'
apply from: 'libraries.gradle'
version "${robo4jVersion}"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'robo4j-rpi-camera-client',
'Implementation-Version': version,
'Main-Class': 'com.robo4j.camara.client.CameraClientDeclarativeMain'
}
//baseName = project.name + '-all'
baseName = 'robo4j-rpi-camera-client'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile "com.robo4j:robo4j-hw-rpi:${robo4jVersion}"
compile "com.robo4j:robo4j-units-rpi:${robo4jVersion}"
compile "com.robo4j:robo4j-units-rpi-http:${robo4jVersion}"
compile "com.robo4j:robo4j-socket-http:${robo4jVersion}"
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
testCompile "org.mockito:mockito-all:${mockitoAllVersion}@jar"
}
task wrapper(type: Wrapper) {
gradleVersion = "${gradleVersion}"
}