-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
39 lines (34 loc) · 1.01 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
group 'com.thoughtworks.swagger.parser'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.8
tasks.withType(JavaCompile) {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
options.deprecation = true
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked"
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar',
'Implementation-Version': version,
'Main-Class': 'com.swagger.parser'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
jcenter()
maven {
url "http://repo.maven.apache.org/maven2"
}
}
dependencies {
testCompile 'junit:junit:4.11'
compile 'io.swagger:swagger-parser:1.0.24'
compile 'io.swagger:swagger-compat-spec-parser:1.0.29'
compile 'io.swagger:swagger-models:1.5.10'
compile group: 'commons-lang', name: 'commons-lang', version: '2.3'
}