|
36 | 36 | <scm> |
37 | 37 | <connection>scm:git:git://github.com/kpavlov/langchain4j-kotlin.git</connection> |
38 | 38 | <developerConnection>scm:git:ssh://github.com/kpavlov/langchain4j-kotlin.git</developerConnection> |
39 | | - <url>https://github.com/kpavlov/langchain4j-kotlin/tree/main</url> |
40 | 39 | <tag>HEAD</tag> |
| 40 | + <url>https://github.com/kpavlov/langchain4j-kotlin/tree/main</url> |
41 | 41 | </scm> |
42 | 42 |
|
43 | 43 | <properties> |
44 | | - <argLine /> |
| 44 | + <argLine/> |
45 | 45 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
46 | 46 | <kotlin.code.style>official</kotlin.code.style> |
47 | 47 | <java.version>17</java.version> |
|
166 | 166 | </dependencies> |
167 | 167 |
|
168 | 168 | <build> |
169 | | - <sourceDirectory>src/main/kotlin</sourceDirectory> |
170 | | - <testSourceDirectory>src/test/kotlin</testSourceDirectory> |
171 | 169 | <pluginManagement> |
172 | 170 | <plugins> |
173 | 171 | <plugin> |
|
229 | 227 | <artifactId>maven-project-info-reports-plugin</artifactId> |
230 | 228 | <version>3.8.0</version> |
231 | 229 | </plugin> |
| 230 | + <plugin> |
| 231 | + <!-- https://github.com/diffplug/spotless/blob/main/plugin-maven --> |
| 232 | + <groupId>com.diffplug.spotless</groupId> |
| 233 | + <artifactId>spotless-maven-plugin</artifactId> |
| 234 | + <version>2.43.0</version> |
| 235 | + <configuration> |
| 236 | + <!-- optional: limit format enforcement to just the files changed by this feature branch --> |
| 237 | + <ratchetFrom>origin/main</ratchetFrom> |
| 238 | + <java> |
| 239 | + <palantirJavaFormat/> |
| 240 | + </java> |
| 241 | + <kotlin> |
| 242 | + <ktlint/> |
| 243 | + </kotlin> |
| 244 | + <markdown> |
| 245 | + <includes> |
| 246 | + <!-- You have to set the target manually --> |
| 247 | + <include>**/*.md</include> |
| 248 | + </includes> |
| 249 | + <flexmark/> |
| 250 | + </markdown> |
| 251 | + <pom> |
| 252 | + <includes> |
| 253 | + <!-- You have to set the target manually --> |
| 254 | + <include>**/pom.xml</include> |
| 255 | + </includes> |
| 256 | + <sortPom> |
| 257 | + <nrOfIndentSpace>4</nrOfIndentSpace> |
| 258 | + <expandEmptyElements>false</expandEmptyElements> |
| 259 | + </sortPom> |
| 260 | + </pom> |
| 261 | + </configuration> |
| 262 | + </plugin> |
232 | 263 | </plugins> |
233 | 264 | </pluginManagement> |
234 | 265 |
|
|
308 | 339 | <artifactId>detekt-maven-plugin</artifactId> |
309 | 340 | <executions> |
310 | 341 | <execution> |
311 | | - <phase>verify</phase> |
312 | 342 | <goals> |
313 | 343 | <goal>check</goal> |
314 | 344 | </goals> |
| 345 | + <phase>verify</phase> |
315 | 346 | </execution> |
316 | 347 | </executions> |
317 | 348 | </plugin> |
|
320 | 351 | <artifactId>dokka-maven-plugin</artifactId> |
321 | 352 | <executions> |
322 | 353 | <execution> |
323 | | - <phase>package</phase> |
324 | 354 | <goals> |
325 | 355 | <goal>javadocJar</goal> |
326 | 356 | </goals> |
| 357 | + <phase>package</phase> |
327 | 358 | <configuration> |
328 | 359 | <attach>true</attach> |
329 | 360 | </configuration> |
|
344 | 375 | </configuration> |
345 | 376 | </plugin> |
346 | 377 | </plugins> |
| 378 | + <sourceDirectory>src/main/kotlin</sourceDirectory> |
| 379 | + <testSourceDirectory>src/test/kotlin</testSourceDirectory> |
347 | 380 | </build> |
348 | 381 |
|
349 | 382 | <profiles> |
|
358 | 391 | <executions> |
359 | 392 | <execution> |
360 | 393 | <id>sign-artifacts</id> |
361 | | - <phase>verify</phase> |
362 | 394 | <goals> |
363 | 395 | <goal>sign</goal> |
364 | 396 | </goals> |
| 397 | + <phase>verify</phase> |
365 | 398 | </execution> |
366 | 399 | </executions> |
367 | 400 | </plugin> |
|
0 commit comments