forked from springfox/springfox
/
build.gradle
71 lines (61 loc) · 2.09 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
plugins {
id "net.ltgt.apt-idea" version "0.21"
}
ext {
limits = [
'instruction': 97,
'branch' : 95,
'line' : 97,
'complexity' : 94,
'method' : 94,
'class' : 95.5
]
}
sourceSets {
integrationTest { sourceSet ->
["java", "groovy", "scala", "resources"].each {
if (!sourceSet.hasProperty(it)) return
sourceSet."$it".srcDir file("src/integration-test/${it}")
}
}
}
// Define integration test task
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
dependencies {
api project(':springfox-spi')
api project(':springfox-schema')
api project(':springfox-core')
api project(':springfox-spring-web')
api project(':springfox-spring-webmvc')
api project(':springfox-swagger-common')
api libs.core
api libs.spring
api libs.swagger2Core
compileOnly libs.springProvidedWithMvc
compileOnly libs.clientProvided
compileOnly "javax.servlet:javax.servlet-api:$servlet"
implementation "org.mapstruct:mapstruct:$mapstruct"
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstruct"
testImplementation project(':springfox-core').sourceSets.test.output
testImplementation project(':springfox-schema').sourceSets.test.output
testImplementation project(':springfox-swagger-common').sourceSets.test.output
testImplementation project(':springfox-spring-web').sourceSets.test.output
testImplementation project(':springfox-spring-webmvc').sourceSets.test.output
testImplementation libs.test
testImplementation libs.springProvidedWithMvc
testImplementation libs.clientProvided
testImplementation "javax.servlet:javax.servlet-api:$servlet"
integrationTestCompile sourceSets.main.output
integrationTestCompile sourceSets.test.output
integrationTestCompile configurations.testImplementation
integrationTestRuntime configurations.testRuntime
}
compileJava {
options.compilerArgs += [
"-Amapstruct.defaultComponentModel=spring",
"-Amapstruct.unmappedTargetPolicy=ERROR"
]
}