-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
111 lines (90 loc) · 3.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-cargo-plugin:2.0.3'
}
}
apply plugin: 'java'
apply from: 'gradle/props.gradle'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
configurations {
quasar
provided
}
sourceSets {
main.compileClasspath = main.compileClasspath + configurations.provided
test.compileClasspath = test.compileClasspath + configurations.provided
test.runtimeClasspath = test.runtimeClasspath + configurations.provided
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force "com.google.guava:guava:$guavaVer"
force "com.fasterxml.jackson.core:jackson-core:$jacksonVer"
force "com.fasterxml.jackson.core:jackson-databind:$jacksonVer"
force "com.fasterxml.jackson.core:jackson-annotations:$jacksonVer"
force "com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:$jacksonVer"
force "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jacksonVer"
force "org.slf4j:slf4j-api:$slf4jVer"
force "xml-apis:xml-apis:$xmlAPIsVer"
force "io.dropwizard.metrics:metrics-core:$metricsVer"
force "org.jdbi:jdbi:$jdbiVer"
force "org.glassfish.jersey.core:jersey-server:$jerseyVer"
force "org.glassfish.jersey.core:jersey-client:$jerseyVer"
force "org.glassfish.jersey.core:jersey-common:$jerseyVer"
force "org.glassfish.jersey.containers:jersey-container-servlet:$jerseyVer"
force "org.apache.httpcomponents:httpcore:$httpCoreVer"
}
}
repositories {
// mavenLocal()
mavenCentral()
// maven { url "https://oss.sonatype.org/content/repositories/releases" }
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
// maven { url 'https://maven.java.net/content/repositories/snapshots' }
}
test {
beforeTest { desc ->
logger.quiet("Running test: " + desc)
}
afterTest { desc, result ->
if(result.resultType == TestResult.ResultType.FAILURE) {
logger.quiet("Failed test ${desc.name} [${desc.className}] with exception: ${result.exception}")
if(result.exception != null) {
result.exception.printStackTrace()
}
}
}
}
dependencies {
compile "com.h2database:h2:$h2Ver"
compile "co.paralleluniverse:comsat-jersey-server:$comsatVer"
compile "com.netflix.feign:feign-core:$feignVer"
compile ("com.netflix.feign:feign-jaxrs:$feignVer") {
exclude group: 'javax.ws.rs', module: 'jsr311-api'
}
compile ("com.netflix.feign:feign-jackson:$feignVer") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jerseyVer"
compile "co.paralleluniverse:comsat-jdbi:$comsatVer"
compile "co.paralleluniverse:comsat-dropwizard:$comsatVer"
compile "io.dropwizard:dropwizard-core:$dropwizardVer"
compile "co.paralleluniverse:quasar-core:$quasarVer${classifier}"
compile "co.paralleluniverse:comsat-jdbc:$comsatVer"
provided "javax.servlet:javax.servlet-api:$servletVer"
quasar "co.paralleluniverse:quasar-core:${quasarVer}${classifier}@jar"
runtime fileTree(dir: 'lib', include: '*.jar')
testCompile "junit:junit:$junitVer"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
defaultTasks 'compile'
if (project.hasProperty('env')) {
apply from: "gradle/${project.getProperty('env')}.gradle"
} else {
apply from: "gradle/tomcat8.gradle"
}