forked from edoust/Spreadsheet-Inspection-Framework
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
55 lines (49 loc) · 1.65 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
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'jacoco'
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
ext {
depVersions = [
jersey: '2.25',
guice: '4.1.0',
slf4j: '1.7.22'
]
}
task fatJar(type: Jar) {
manifest {
attributes 'Manifest-Version': '1.0',
'Main-Class': 'sif.Main'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
jar.dependsOn fatJar
task copyTestResources(type: Copy) {
from "${projectDir}/src/test/api"
into "${buildDir}/classes/test"
}
processTestResources.dependsOn copyTestResources
mainClassName = 'sif.Main'
dependencies {
compile "com.google.inject:guice:$depVersions.guice"
compile "com.google.inject.extensions:guice-servlet:$depVersions.guice"
compile "com.google.inject.extensions:guice-assistedinject:$depVersions.guice"
compile "org.glassfish.jersey.containers:jersey-container-servlet:$depVersions.jersey"
compile "org.glassfish.jersey.media:jersey-media-multipart:$depVersions.jersey"
compile 'com.squarespace.jersey2-guice:jersey2-guice-impl:1.0.6'
compile 'com.palominolabs.http:jetty-http-server-wrapper:1.1.2'
compile "org.apache.poi:poi:3.14"
compile 'org.apache.poi:poi-ooxml:3.14'
compile 'ch.qos.logback:logback-classic:1.1.7'
compile "org.slf4j:jul-to-slf4j:$depVersions.slf4j"
compile "org.slf4j:log4j-over-slf4j:$depVersions.slf4j"
compile "org.slf4j:jcl-over-slf4j:$depVersions.slf4j"
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-all:1.3'
}