-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
40 lines (31 loc) · 1.02 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
group 'com.xelatech.barcode'
version '0.0.1-SNAPSHOT'
apply plugin: 'java-library'
repositories {
jcenter()
}
configurations {
allLibs }
dependencies {
compile(
files('lib/opencv-400.jar')
)
allLibs(
files('lib/opencv-400.jar'), 'commons-logging:commons-logging:1.2', 'com.google.zxing:core:3.+', 'com.google.zxing:javase:3.+', 'org.apache.pdfbox:pdfbox:2.+'
)
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation ('commons-logging:commons-logging:1.2', 'com.google.zxing:core:3.+', 'com.google.zxing:javase:3.+', 'org.apache.pdfbox:pdfbox:2.+')
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
configurations.compile.extendsFrom(configurations.allLibs)
}
task fatJar(type: Jar) {
manifest.from jar.manifest
manifest { attributes 'Main-Class': 'com.xelatech.barcode.localizer.Test' }
classifier = 'all'
from {
configurations.allLibs.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}
artifacts { archives fatJar }