|
16 | 16 | <properties>
|
17 | 17 | <java.version>17</java.version>
|
18 | 18 | <org.mapstruct.version>1.6.0.Beta1</org.mapstruct.version>
|
| 19 | + <kotlin.version>1.9.23</kotlin.version> |
19 | 20 | </properties>
|
20 | 21 | <dependencies>
|
21 | 22 | <dependency>
|
|
76 | 77 | <artifactId>swagger-annotations</artifactId>
|
77 | 78 | <version>2.2.16</version>
|
78 | 79 | </dependency>
|
| 80 | + <dependency> |
| 81 | + <groupId>org.jetbrains.kotlin</groupId> |
| 82 | + <artifactId>kotlin-stdlib-jdk8</artifactId> |
| 83 | + <version>${kotlin.version}</version> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>org.jetbrains.kotlin</groupId> |
| 87 | + <artifactId>kotlin-test</artifactId> |
| 88 | + <version>${kotlin.version}</version> |
| 89 | + <scope>test</scope> |
| 90 | + </dependency> |
79 | 91 |
|
80 | 92 | </dependencies>
|
81 | 93 |
|
82 | 94 | <build>
|
83 | 95 | <plugins>
|
84 |
| - <plugin> |
85 |
| - <groupId>org.apache.maven.plugins</groupId> |
86 |
| - <artifactId>maven-compiler-plugin</artifactId> |
87 |
| - <version>3.8.1</version> |
88 |
| - <configuration> |
89 |
| - <source>1.8</source> <!-- depending on your project --> |
90 |
| - <target>1.8</target> <!-- depending on your project --> |
91 |
| - <annotationProcessorPaths> |
92 |
| - <path> |
93 |
| - <groupId>org.mapstruct</groupId> |
94 |
| - <artifactId>mapstruct-processor</artifactId> |
95 |
| - <version>${org.mapstruct.version}</version> |
96 |
| - </path> |
97 |
| - <!-- other annotation processors --> |
98 |
| - </annotationProcessorPaths> |
99 |
| - </configuration> |
100 |
| - </plugin> |
101 | 96 | <plugin>
|
102 | 97 | <groupId>org.apache.maven.plugins</groupId>
|
103 | 98 | <artifactId>maven-compiler-plugin</artifactId>
|
|
139 | 134 | </excludes>
|
140 | 135 | </configuration>
|
141 | 136 | </plugin>
|
| 137 | + <plugin> |
| 138 | + <groupId>org.jetbrains.kotlin</groupId> |
| 139 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 140 | + <version>${kotlin.version}</version> |
| 141 | + <executions> |
| 142 | + <execution> |
| 143 | + <id>compile</id> |
| 144 | + <phase>compile</phase> |
| 145 | + <goals> |
| 146 | + <goal>compile</goal> |
| 147 | + </goals> |
| 148 | + </execution> |
| 149 | + <execution> |
| 150 | + <id>test-compile</id> |
| 151 | + <phase>test-compile</phase> |
| 152 | + <goals> |
| 153 | + <goal>test-compile</goal> |
| 154 | + </goals> |
| 155 | + </execution> |
| 156 | + </executions> |
| 157 | + <configuration> |
| 158 | + <jvmTarget>1.8</jvmTarget> |
| 159 | + </configuration> |
| 160 | + </plugin> |
| 161 | + <plugin> |
| 162 | + <groupId>org.apache.maven.plugins</groupId> |
| 163 | + <artifactId>maven-compiler-plugin</artifactId> |
| 164 | + <version>3.8.1</version> |
| 165 | + <executions> |
| 166 | + <execution> |
| 167 | + <id>default-compile</id> |
| 168 | + <phase>none</phase> |
| 169 | + </execution> |
| 170 | + <execution> |
| 171 | + <id>default-testCompile</id> |
| 172 | + <phase>none</phase> |
| 173 | + </execution> |
| 174 | + <execution> |
| 175 | + <id>compile</id> |
| 176 | + <phase>compile</phase> |
| 177 | + <goals> |
| 178 | + <goal>compile</goal> |
| 179 | + </goals> |
| 180 | + </execution> |
| 181 | + <execution> |
| 182 | + <id>testCompile</id> |
| 183 | + <phase>test-compile</phase> |
| 184 | + <goals> |
| 185 | + <goal>testCompile</goal> |
| 186 | + </goals> |
| 187 | + </execution> |
| 188 | + </executions> |
| 189 | + <configuration> |
| 190 | + <source>1.8</source> <!-- depending on your project --> |
| 191 | + <target>1.8</target> <!-- depending on your project --> |
| 192 | + <annotationProcessorPaths> |
| 193 | + <path> |
| 194 | + <groupId>org.mapstruct</groupId> |
| 195 | + <artifactId>mapstruct-processor</artifactId> |
| 196 | + <version>${org.mapstruct.version}</version> |
| 197 | + </path> |
| 198 | + <!-- other annotation processors --> |
| 199 | + </annotationProcessorPaths> |
| 200 | + </configuration> |
| 201 | + </plugin> |
142 | 202 | </plugins>
|
143 | 203 | </build>
|
144 | 204 |
|
|
0 commit comments