Skip to content

Commit 6396dd9

Browse files
authored
Merge pull request #79 from holixon/feature/pom_and_deps
[#77] Feature/pom and deps
2 parents 8588828 + 6655d5b commit 6396dd9

File tree

3 files changed

+50
-34
lines changed

3 files changed

+50
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ If you want to build the extension locally, you need to check it out from GiHub
8282

8383
### Producing JavaDocs and Sources archive
8484

85-
In order to build JavaDoc and Sources archives you will need JDK 8 installed on your machine. Please execute the following command line:
85+
Please execute the following command line if you are interested in producing KDoc and Source archives:
8686

8787
./mvnw clean install -Pjavadoc-and-sources
8888

kotlin/pom.xml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030

3131
<artifactId>axon-kotlin</artifactId>
3232

33+
<properties>
34+
<dokka.skip>false</dokka.skip>
35+
</properties>
36+
3337
<dependencies>
3438
<dependency>
3539
<groupId>org.axonframework</groupId>
@@ -47,28 +51,4 @@
4751
</plugins>
4852
</build>
4953

50-
<profiles>
51-
<profile>
52-
<id>javadoc-and-sources</id>
53-
<activation>
54-
<property>
55-
<name>performRelease</name>
56-
<value>true</value>
57-
</property>
58-
</activation>
59-
<build>
60-
<plugins>
61-
<plugin>
62-
<groupId>org.jetbrains.dokka</groupId>
63-
<artifactId>dokka-maven-plugin</artifactId>
64-
</plugin>
65-
<plugin>
66-
<artifactId>maven-source-plugin</artifactId>
67-
<version>3.0.1</version>
68-
</plugin>
69-
</plugins>
70-
</build>
71-
</profile>
72-
</profiles>
73-
7454
</project>

pom.xml

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,20 @@
3434
<axon.version>4.4.3</axon.version>
3535
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3636
<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>
3838
<jackson-kotlin.version>2.11.3</jackson-kotlin.version>
3939
<mockk.version>1.10.2</mockk.version>
4040
<junit.jupiter.version>5.7.0</junit.jupiter.version>
4141
<slf4j.version>1.7.30</slf4j.version>
4242
<log4j.version>2.13.3</log4j.version>
4343
<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>
4451
</properties>
4552

4653
<dependencyManagement>
@@ -71,16 +78,9 @@
7178
</dependency>
7279
<dependency>
7380
<groupId>io.github.microutils</groupId>
74-
<artifactId>kotlin-logging</artifactId>
81+
<artifactId>kotlin-logging-jvm</artifactId>
7582
<version>${kotlin-logging.version}</version>
76-
<exclusions>
77-
<exclusion>
78-
<groupId>org.jetbrains.kotlin</groupId>
79-
<artifactId>kotlin-stdlib</artifactId>
80-
</exclusion>
81-
</exclusions>
8283
</dependency>
83-
8484
<dependency>
8585
<groupId>org.junit.jupiter</groupId>
8686
<artifactId>junit-jupiter-api</artifactId>
@@ -108,6 +108,12 @@
108108
<version>${mockk.version}</version>
109109
<scope>test</scope>
110110
</dependency>
111+
<dependency>
112+
<groupId>org.slf4j</groupId>
113+
<artifactId>slf4j-simple</artifactId>
114+
<version>${slf4j.version}</version>
115+
<scope>test</scope>
116+
</dependency>
111117
</dependencies>
112118
</dependencyManagement>
113119

@@ -160,6 +166,12 @@
160166
<artifactId>mockk</artifactId>
161167
<scope>test</scope>
162168
</dependency>
169+
<dependency>
170+
<groupId>org.slf4j</groupId>
171+
<artifactId>slf4j-simple</artifactId>
172+
<scope>test</scope>
173+
</dependency>
174+
163175
</dependencies>
164176

165177
<!-- License Stuff -->
@@ -235,6 +247,26 @@
235247
</plugins>
236248
</build>
237249
</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>
238270

239271
</profiles>
240272

@@ -349,6 +381,10 @@
349381
<groupId>org.jetbrains.dokka</groupId>
350382
<artifactId>dokka-maven-plugin</artifactId>
351383
<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>
352388
<executions>
353389
<execution>
354390
<phase>prepare-package</phase>

0 commit comments

Comments
 (0)