-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (48 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
46
47
48
49
50
51
52
53
54
55
group 'com.ai-traders.swagger'
version '0.2.0'
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
sourceSets {
main {
java {
srcDirs = ["src/main/java"]
}
}
test {
java {
srcDirs = ["src/test/java"]
}
resources {
srcDir 'src/test/resources'
}
}
}
task copyTestResources(type: Copy) {
from "${projectDir}/src/test/resources"
into "${buildDir}/classes/test"
}
processTestResources.dependsOn copyTestResources
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.ai_traders.swagger.composer.Main'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
{
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'io.swagger', name: 'swagger-parser', version: '1.0.23'
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
testCompile group: 'junit', name: 'junit', version: '4.11'
}