|
36 | 36 | </properties> |
37 | 37 |
|
38 | 38 | <dependencies> |
39 | | - <dependency> |
40 | | - <groupId>org.projectlombok</groupId> |
41 | | - <artifactId>lombok</artifactId> |
42 | | - <version>${org.projectlombok.version}</version> |
43 | | - <scope>provided</scope> |
44 | | - </dependency> |
45 | 39 |
|
46 | 40 | <dependency> |
47 | 41 | <groupId>org.mapstruct</groupId> |
48 | 42 | <artifactId>mapstruct</artifactId> |
49 | 43 | <version>${org.mapstruct.version}</version> |
50 | 44 | </dependency> |
| 45 | + |
| 46 | + <!-- lombok dependencies should not end up on classpath --> |
51 | 47 | <dependency> |
| 48 | + <groupId>org.projectlombok</groupId> |
| 49 | + <artifactId>lombok</artifactId> |
| 50 | + <version>${org.projectlombok.version}</version> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <!-- IntelliJ pre 2018.1.1 requires the mapstruct processor to be present as provided dependency --> |
| 55 | +<!-- <dependency> |
52 | 56 | <groupId>org.mapstruct</groupId> |
53 | 57 | <artifactId>mapstruct-processor</artifactId> |
54 | 58 | <version>${org.mapstruct.version}</version> |
55 | 59 | <scope>provided</scope> |
56 | | - </dependency> |
| 60 | + </dependency>--> |
57 | 61 |
|
58 | 62 | <dependency> |
59 | 63 | <groupId>junit</groupId> |
|
70 | 74 | <groupId>org.apache.maven.plugins</groupId> |
71 | 75 | <artifactId>maven-compiler-plugin</artifactId> |
72 | 76 | <version>3.6.2</version> |
| 77 | + <configuration> |
| 78 | + <source>1.8</source> |
| 79 | + <target>1.8</target> |
| 80 | + <!-- See https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html --> |
| 81 | + <!-- Classpath elements to supply as annotation processor path. If specified, the compiler --> |
| 82 | + <!-- will detect annotation processors only in those classpath elements. If omitted, the --> |
| 83 | + <!-- default classpath is used to detect annotation processors. The detection itself depends --> |
| 84 | + <!-- on the configuration of annotationProcessors. --> |
| 85 | + <!-- --> |
| 86 | + <!-- According to this documentation, the provided dependency processor is not considered! --> |
| 87 | + <annotationProcessorPaths> |
| 88 | + <path> |
| 89 | + <groupId>org.mapstruct</groupId> |
| 90 | + <artifactId>mapstruct-processor</artifactId> |
| 91 | + <version>${org.mapstruct.version}</version> |
| 92 | + </path> |
| 93 | + <path> |
| 94 | + <groupId>org.projectlombok</groupId> |
| 95 | + <artifactId>lombok</artifactId> |
| 96 | + <version>${org.projectlombok.version}</version> |
| 97 | + </path> |
| 98 | + </annotationProcessorPaths> |
| 99 | + </configuration> |
73 | 100 | </plugin> |
74 | 101 | </plugins> |
75 | 102 | </pluginManagement> |
|
0 commit comments