|
34 | 34 | <axon.version>4.4.3</axon.version>
|
35 | 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
36 | 36 | <kotlin.version>1.4.10</kotlin.version>
|
37 |
| - <kotlin-logging.version>1.12.0</kotlin-logging.version> |
| 37 | + <kotlin-logging.version>2.0.3</kotlin-logging.version> |
38 | 38 | <jackson-kotlin.version>2.11.3</jackson-kotlin.version>
|
39 | 39 | <mockk.version>1.10.2</mockk.version>
|
40 | 40 | <junit.jupiter.version>5.7.0</junit.jupiter.version>
|
41 | 41 | <slf4j.version>1.7.30</slf4j.version>
|
42 | 42 | <log4j.version>2.13.3</log4j.version>
|
43 | 43 | <dokka.version>1.4.10.2</dokka.version>
|
| 44 | + |
| 45 | + <!-- |
| 46 | + Deactivate dokka by default, and make the build faster for all projects. |
| 47 | + The dokka.skip will be set to true on relevant projects only containing Kotlin code |
| 48 | + (for example there is no reason to produce KDoc for example modules or empty javadoc archives for pom-only modules) |
| 49 | + --> |
| 50 | + <dokka.skip>true</dokka.skip> |
44 | 51 | </properties>
|
45 | 52 |
|
46 | 53 | <dependencyManagement>
|
|
71 | 78 | </dependency>
|
72 | 79 | <dependency>
|
73 | 80 | <groupId>io.github.microutils</groupId>
|
74 |
| - <artifactId>kotlin-logging</artifactId> |
| 81 | + <artifactId>kotlin-logging-jvm</artifactId> |
75 | 82 | <version>${kotlin-logging.version}</version>
|
76 |
| - <exclusions> |
77 |
| - <exclusion> |
78 |
| - <groupId>org.jetbrains.kotlin</groupId> |
79 |
| - <artifactId>kotlin-stdlib</artifactId> |
80 |
| - </exclusion> |
81 |
| - </exclusions> |
82 | 83 | </dependency>
|
83 |
| - |
84 | 84 | <dependency>
|
85 | 85 | <groupId>org.junit.jupiter</groupId>
|
86 | 86 | <artifactId>junit-jupiter-api</artifactId>
|
|
108 | 108 | <version>${mockk.version}</version>
|
109 | 109 | <scope>test</scope>
|
110 | 110 | </dependency>
|
| 111 | + <dependency> |
| 112 | + <groupId>org.slf4j</groupId> |
| 113 | + <artifactId>slf4j-simple</artifactId> |
| 114 | + <version>${slf4j.version}</version> |
| 115 | + <scope>test</scope> |
| 116 | + </dependency> |
111 | 117 | </dependencies>
|
112 | 118 | </dependencyManagement>
|
113 | 119 |
|
|
160 | 166 | <artifactId>mockk</artifactId>
|
161 | 167 | <scope>test</scope>
|
162 | 168 | </dependency>
|
| 169 | + <dependency> |
| 170 | + <groupId>org.slf4j</groupId> |
| 171 | + <artifactId>slf4j-simple</artifactId> |
| 172 | + <scope>test</scope> |
| 173 | + </dependency> |
| 174 | + |
163 | 175 | </dependencies>
|
164 | 176 |
|
165 | 177 | <!-- License Stuff -->
|
|
235 | 247 | </plugins>
|
236 | 248 | </build>
|
237 | 249 | </profile>
|
| 250 | + <profile> |
| 251 | + <id>docs-and-sources</id> |
| 252 | + <activation> |
| 253 | + <property> |
| 254 | + <name>performRelease</name> |
| 255 | + <value>true</value> |
| 256 | + </property> |
| 257 | + </activation> |
| 258 | + <build> |
| 259 | + <plugins> |
| 260 | + <plugin> |
| 261 | + <groupId>org.jetbrains.dokka</groupId> |
| 262 | + <artifactId>dokka-maven-plugin</artifactId> |
| 263 | + </plugin> |
| 264 | + <plugin> |
| 265 | + <artifactId>maven-source-plugin</artifactId> |
| 266 | + </plugin> |
| 267 | + </plugins> |
| 268 | + </build> |
| 269 | + </profile> |
238 | 270 |
|
239 | 271 | </profiles>
|
240 | 272 |
|
|
349 | 381 | <groupId>org.jetbrains.dokka</groupId>
|
350 | 382 | <artifactId>dokka-maven-plugin</artifactId>
|
351 | 383 | <version>${dokka.version}</version>
|
| 384 | + <configuration> |
| 385 | + <!-- Conditionally set per maven module, deactivated by default, to speed up and avoid unneeded empty docs archive --> |
| 386 | + <skip>${dokka.skip}</skip> |
| 387 | + </configuration> |
352 | 388 | <executions>
|
353 | 389 | <execution>
|
354 | 390 | <phase>prepare-package</phase>
|
|
0 commit comments