|
24 | 24 |
|
25 | 25 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
26 | 26 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
| 27 | + <kotlin.version>1.9.22</kotlin.version> |
27 | 28 | </properties>
|
28 | 29 |
|
29 | 30 | <repositories>
|
|
91 | 92 | <version>5.4.0</version>
|
92 | 93 | <scope>test</scope>
|
93 | 94 | </dependency>
|
| 95 | + <dependency> |
| 96 | + <groupId>org.jetbrains.kotlin</groupId> |
| 97 | + <artifactId>kotlin-stdlib-jdk8</artifactId> |
| 98 | + <version>${kotlin.version}</version> |
| 99 | + </dependency> |
| 100 | + <dependency> |
| 101 | + <groupId>org.jetbrains.kotlin</groupId> |
| 102 | + <artifactId>kotlin-test</artifactId> |
| 103 | + <version>${kotlin.version}</version> |
| 104 | + <scope>test</scope> |
| 105 | + </dependency> |
94 | 106 |
|
95 | 107 | </dependencies>
|
96 | 108 |
|
97 | 109 | <build>
|
98 | 110 | <plugins>
|
99 |
| - <plugin> |
100 |
| - <groupId>org.apache.maven.plugins</groupId> |
101 |
| - <artifactId>maven-compiler-plugin</artifactId> |
102 |
| - <version>${maven-compiler-plugin.version}</version> |
103 |
| - <configuration> |
104 |
| - <release>17</release> |
105 |
| - </configuration> |
106 |
| - </plugin> |
107 | 111 | <plugin>
|
108 | 112 | <groupId>org.apache.maven.plugins</groupId>
|
109 | 113 | <artifactId>maven-surefire-plugin</artifactId>
|
|
147 | 151 | </gitFlowConfig>
|
148 | 152 | </configuration>
|
149 | 153 | </plugin>
|
| 154 | + <plugin> |
| 155 | + <groupId>org.jetbrains.kotlin</groupId> |
| 156 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 157 | + <version>${kotlin.version}</version> |
| 158 | + <executions> |
| 159 | + <execution> |
| 160 | + <id>compile</id> |
| 161 | + <phase>compile</phase> |
| 162 | + <goals> |
| 163 | + <goal>compile</goal> |
| 164 | + </goals> |
| 165 | + <configuration> |
| 166 | + <sourceDirs> |
| 167 | + <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| 168 | + <sourceDir>${project.basedir}/src/main/java</sourceDir> |
| 169 | + <source>target/generated-sources/annotations</source> |
| 170 | + </sourceDirs> |
| 171 | + </configuration> |
| 172 | + </execution> |
| 173 | + <execution> |
| 174 | + <id>test-compile</id> |
| 175 | + <phase>test-compile</phase> |
| 176 | + <goals> |
| 177 | + <goal>test-compile</goal> |
| 178 | + </goals> |
| 179 | + <configuration> |
| 180 | + <sourceDirs> |
| 181 | + <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| 182 | + <sourceDir>${project.basedir}/src/test/java</sourceDir> |
| 183 | + <source>target/generated-test-sources/test-annotations</source> |
| 184 | + </sourceDirs> |
| 185 | + </configuration> |
| 186 | + </execution> |
| 187 | + </executions> |
| 188 | + <configuration> |
| 189 | + <jvmTarget>1.8</jvmTarget> |
| 190 | + </configuration> |
| 191 | + </plugin> |
| 192 | + <plugin> |
| 193 | + <groupId>org.apache.maven.plugins</groupId> |
| 194 | + <artifactId>maven-compiler-plugin</artifactId> |
| 195 | + <version>${maven-compiler-plugin.version}</version> |
| 196 | + <executions> |
| 197 | + <execution> |
| 198 | + <id>default-compile</id> |
| 199 | + <phase>none</phase> |
| 200 | + </execution> |
| 201 | + <execution> |
| 202 | + <id>default-testCompile</id> |
| 203 | + <phase>none</phase> |
| 204 | + </execution> |
| 205 | + <execution> |
| 206 | + <id>compile</id> |
| 207 | + <phase>compile</phase> |
| 208 | + <goals> |
| 209 | + <goal>compile</goal> |
| 210 | + </goals> |
| 211 | + </execution> |
| 212 | + <execution> |
| 213 | + <id>testCompile</id> |
| 214 | + <phase>test-compile</phase> |
| 215 | + <goals> |
| 216 | + <goal>testCompile</goal> |
| 217 | + </goals> |
| 218 | + </execution> |
| 219 | + </executions> |
| 220 | + <configuration> |
| 221 | + <release>17</release> |
| 222 | + </configuration> |
| 223 | + </plugin> |
150 | 224 |
|
151 | 225 | </plugins>
|
152 | 226 | </build>
|
|
0 commit comments