/
build.gradle
132 lines (116 loc) · 4.45 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
buildscript {
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'org.yaml:snakeyaml:1.21'
classpath 'org.owasp:dependency-check-gradle:3.3.2'
}
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'project-report'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.owasp.dependencycheck'
group 'org.zalando'
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
acceptanceTest {
java {
srcDir file('src/acceptance-test/java')
}
resources.srcDir file('src/acceptance-test/resources')
}
}
configurations {
all*.exclude module: 'spring-boot-starter-logging'
acceptanceTestCompile.extendsFrom testCompile
acceptanceTestRuntime.extendsFrom testRuntime
}
dependencies {
ext {
dropwizardVersion = '3.1.3'
curatorVersion = '4.2.0'
zookeeperVersion = '3.4.14'
jacksonVersion = '2.9.8'
springFrameworkVersion = '4.3.23.RELEASE'
}
// Override spring-boot BOM versions
ext['json.version'] = '20180130'
ext['json-path'] = '2.4.0'
ext['jsonassert'] = '1.5.0'
compile project(':core-common')
compile project(':core-metastore')
compile project(':core-services')
compile project(':api-publishing')
compile project(':api-consumption')
compile project(':api-metastore')
compile project(':api-cursors')
compile project(':api-misc')
compile project(':app')
// spring
compile("org.springframework.boot:spring-boot-starter-web") {
exclude module: 'logback-classic'
exclude module: 'log4j-over-slf4j'
exclude module: 'spring-boot-starter-tomcat'
}
compile "org.springframework:spring-context:$springFrameworkVersion"
compile "org.springframework:spring-web:$springFrameworkVersion"
compile "org.springframework:spring-webmvc:$springFrameworkVersion"
compile "org.springframework.boot:spring-boot-starter-jetty"
compile('org.springframework.boot:spring-boot-starter-security') {
exclude module: "logback-classic"
}
compile 'org.slf4j:slf4j-log4j12'
compile("com.fasterxml.jackson.datatype:jackson-datatype-json-org:$jacksonVersion") {
exclude module: "json"
}
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:$jacksonVersion"
compile "com.fasterxml.jackson.datatype:jackson-datatype-joda:$jacksonVersion"
compile "com.fasterxml.jackson.module:jackson-module-afterburner:$jacksonVersion"
compile "com.fasterxml.jackson.module:jackson-module-scala_2.12:$jacksonVersion"
compile 'org.zalando:jackson-datatype-problem:0.22.0'
compile 'org.zalando:problem:0.22.0'
compile 'org.json:json:20180130'
compile('org.zalando.stups:stups-spring-oauth2-server:1.0.22') {
exclude module: "httpclient"
}
compile 'org.zalando:twintip-spring-web:1.1.0'
// tests
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile('org.junit.jupiter:junit-jupiter-api:5.5.2') {
exclude module: "hamcrest-core"
}
testCompile "org.springframework:spring-test"
testCompile 'org.springframework.boot:spring-boot-test'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.skyscreamer:jsonassert'
testCompile 'uk.co.datumedge:hamcrest-json:0.2'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile('com.jayway.restassured:rest-assured:2.9.0') {
exclude module: "hamcrest-core"
exclude module: "hamcrest-library"
}
testCompile 'com.jayway.jsonpath:json-path'
testRuntime 'org.pegdown:pegdown:1.6.0'
testCompile project(path: ':core-common', configuration: 'testOutput')
testCompile project(path: ':core-services', configuration: 'testOutput')
}
task acceptanceTest(type: Test) {
classpath = sourceSets.acceptanceTest.runtimeClasspath
testClassesDirs = sourceSets.acceptanceTest.output.classesDirs
}
acceptanceTest {
testLogging {
events "passed", "skipped", "failed"
}
testLogging.exceptionFormat = 'full'
maxParallelForks = 1
}
bootRepackage {
enabled = false
}