forked from dave-ellis/gradle-swagger-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (56 loc) · 1.8 KB
/
build.gradle
File metadata and controls
67 lines (56 loc) · 1.8 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
group = 'com.github.gradle-swagger'
version = '1.0.2-SNAPSHOT'
defaultTasks 'install'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
ext {
libraries = [
// Compile dependencies...
'commons-lang3':['org.apache.commons:commons-lang3:3.1'],
'httpclient':['org.apache.httpcomponents:httpclient:4.2.2'],
'mustache':['com.github.spullara.mustache.java:compiler:0.8.12'],
'paranamer':['com.thoughtworks.paranamer:paranamer:2.5.2'],
'swagger-jaxrs':['com.wordnik:swagger-jaxrs_2.10:1.3.2'],
'swagger-jersey-jaxrs':['com.wordnik:swagger-jersey-jaxrs_2.10:1.3.2'],
'reflections':['org.reflections:reflections:0.9.9-RC1'],
'commons-io':['commons-io:commons-io:2.0.1'],
'slf4j':['org.slf4j:slf4j-api:1.7.2'],
'rs-api':['javax.ws.rs:javax.ws.rs-api:2.0'],
'logback':['ch.qos.logback:logback-classic:1.0.13'],
'junit':['junit:junit:4.11'],
]
}
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked"
}
repositories {
mavenLocal()
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile gradleApi()
compile localGroovy()
compile libraries.'commons-lang3'
compile libraries.'httpclient'
compile libraries.'mustache'
compile libraries.'swagger-jaxrs'
compile(libraries.'swagger-jersey-jaxrs') {
exclude group: 'asm'
}
compile libraries.'reflections'
compile libraries.'commons-io'
compile libraries.'rs-api'
compile libraries.'slf4j'
compile libraries.'logback'
testCompile libraries.'junit'
}