File tree Expand file tree Collapse file tree 3 files changed +27
-62
lines changed Expand file tree Collapse file tree 3 files changed +27
-62
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- apply from : " $rootDir /gradle/mapstruct.gradle"
1
+ plugins {
2
+ id " net.ltgt.apt" version " 0.6"
3
+ }
2
4
3
5
ext {
4
6
limits = [
@@ -24,11 +26,21 @@ dependencies {
24
26
provided libs. springProvided
25
27
provided libs. clientProvided
26
28
29
+ compile ' org.mapstruct:mapstruct:1.0.0.Final'
30
+ apt ' org.mapstruct:mapstruct-processor:1.0.0.Final'
31
+
27
32
testCompile project(' :springfox-core' )
28
33
testCompile project(' :springfox-core' ). sourceSets. test. output
29
34
testCompile project(' :springfox-schema' ). sourceSets. test. output
30
35
testCompile project(' :springfox-swagger-common' ). sourceSets. test. output
31
36
testCompile project(' :springfox-spring-web' ). sourceSets. test. output
32
37
testCompile libs. test
33
38
39
+ }
40
+
41
+ compileJava {
42
+ options. compilerArgs + = [
43
+ " -Amapstruct.defaultComponentModel=spring" ,
44
+ " -Amapstruct.unmappedTargetPolicy=ERROR"
45
+ ]
34
46
}
Original file line number Diff line number Diff line change 1
- apply from : " $rootDir /gradle/mapstruct.gradle"
1
+ plugins {
2
+ id " net.ltgt.apt" version " 0.6"
3
+ }
2
4
3
5
ext {
4
6
limits = [
@@ -23,11 +25,22 @@ dependencies {
23
25
provided libs. springProvided
24
26
provided libs. clientProvided
25
27
28
+ compile ' org.mapstruct:mapstruct:1.0.0.Final'
29
+ apt ' org.mapstruct:mapstruct-processor:1.0.0.Final'
30
+
26
31
testCompile project(' :springfox-core' )
27
32
testCompile project(' :springfox-core' ). sourceSets. test. output
28
33
testCompile project(' :springfox-schema' ). sourceSets. test. output
29
34
testCompile project(' :springfox-swagger-common' ). sourceSets. test. output
30
35
testCompile project(' :springfox-spring-web' ). sourceSets. test. output
31
36
32
37
testCompile libs. test
38
+ }
39
+
40
+
41
+ compileJava {
42
+ options. compilerArgs + = [
43
+ " -Amapstruct.defaultComponentModel=spring" ,
44
+ " -Amapstruct.unmappedTargetPolicy=ERROR"
45
+ ]
33
46
}
You can’t perform that action at this time.
0 commit comments