Skip to content

Commit 362a43d

Browse files
authored
update of configuration (#41)
* update of configuration * comments.
1 parent 85e8468 commit 362a43d

1 file changed

Lines changed: 34 additions & 7 deletions

File tree

mapstruct-lombok/pom.xml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,28 @@
3636
</properties>
3737

3838
<dependencies>
39-
<dependency>
40-
<groupId>org.projectlombok</groupId>
41-
<artifactId>lombok</artifactId>
42-
<version>${org.projectlombok.version}</version>
43-
<scope>provided</scope>
44-
</dependency>
4539

4640
<dependency>
4741
<groupId>org.mapstruct</groupId>
4842
<artifactId>mapstruct</artifactId>
4943
<version>${org.mapstruct.version}</version>
5044
</dependency>
45+
46+
<!-- lombok dependencies should not end up on classpath -->
5147
<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>
5256
<groupId>org.mapstruct</groupId>
5357
<artifactId>mapstruct-processor</artifactId>
5458
<version>${org.mapstruct.version}</version>
5559
<scope>provided</scope>
56-
</dependency>
60+
</dependency>-->
5761

5862
<dependency>
5963
<groupId>junit</groupId>
@@ -70,6 +74,29 @@
7074
<groupId>org.apache.maven.plugins</groupId>
7175
<artifactId>maven-compiler-plugin</artifactId>
7276
<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>
73100
</plugin>
74101
</plugins>
75102
</pluginManagement>

0 commit comments

Comments
 (0)