forked from lexml/fop-qrcode-zxing
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
46 lines (38 loc) · 937 Bytes
/
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
apply plugin: 'java'
group = 'ru.hobbut'
version = '0.4.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven { url 'https://repository.jboss.org/maven2/' }
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
dependencies {
compile group: 'com.google.zxing', name: 'core', version:'3.4.0'
testCompile group: 'junit', name: 'junit', version:'4.13'
provided group: 'org.apache.xmlgraphics', name: 'fop', version:'2.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
}
jar {
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}