-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
61 lines (47 loc) · 1.58 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
plugins {
id 'java-library'
id 'org.bytedeco.gradle-javacpp-platform' version "$javacppVersion"
}
group 'ch.bildspur'
version '2.5.1'
sourceCompatibility = 1.8
def rsVersion = 'v2.53.1-0.6.0'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
configurations {
jar.archiveName = outputName + '.jar'
}
javadoc {
source = sourceSets.main.allJava
}
dependencies {
// release
implementation "com.github.cansik:librealsense-java:$rsVersion"
// todo: check why transitive dependencies currently do not work!
// java cpp
implementation group: 'org.bytedeco', name: 'javacpp', version: "$javacppVersion"
// librealsense2
implementation group: 'org.bytedeco', name: 'librealsense2', version: '2.53.1-1.5.9'
implementation group: 'org.bytedeco', name: 'librealsense2-platform', version: '2.53.1-1.5.9'
// compile
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
// processing
implementation fileTree(include: ["core.jar", "jogl-all-main.jar", "gluegen-rt-main.jar"], dir: 'core-libs')
}
task fatJar(type: Jar) {
archiveFileName = "$outputName-complete.jar"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn configurations.runtimeClasspath
from {
(configurations.runtimeClasspath).filter( {! (it.name =~ /core.jar/ ||
it.name =~ /jogl-all-main.jar/ ||
it.name =~ /gluegen-rt-main.jar/)}).collect {
it.isDirectory() ? it : zipTree(it)
}
}
with jar
}
// add processing library support
apply from: "processing-library.gradle"