2828 </dependency >
2929 </dependencies >
3030
31+
3132 <build >
32- <sourceDirectory >${project.basedir} /src/main/kotlin</sourceDirectory >
33- <testSourceDirectory >${project.basedir} /src/test/kotlin</testSourceDirectory >
3433 <plugins >
3534 <plugin >
3635 <artifactId >kotlin-maven-plugin</artifactId >
3736 <groupId >org.jetbrains.kotlin</groupId >
3837 <version >${kotlin-maven-plugin.version} </version >
3938 <executions >
4039 <execution >
40+ <id >compile</id >
41+ <goals > <goal >compile</goal > </goals >
4142 <configuration >
4243 <sourceDirs >
43- <source > src/main/java</ source >
44- <source > src/main/kotlin</ source >
44+ <sourceDir > ${project.basedir} / src/main/kotlin</ sourceDir >
45+ <sourceDir > ${project.basedir} / src/main/java</ sourceDir >
4546 </sourceDirs >
4647 </configuration >
47- <id >compile</id >
48- <goals >
49- <goal >compile</goal >
50- </goals >
5148 </execution >
52-
5349 <execution >
50+ <id >test-compile</id >
51+ <goals > <goal >test-compile</goal > </goals >
5452 <configuration >
5553 <sourceDirs >
56- <source > src/test/java</ source >
57- <source > src/test/kotlin</ source >
54+ <sourceDir > ${project.basedir} / src/test/kotlin</ sourceDir >
55+ <sourceDir > ${project.basedir} / src/test/java</ sourceDir >
5856 </sourceDirs >
5957 </configuration >
60- <id >test-compile</id >
61- <goals >
62- <goal >test-compile</goal >
63- </goals >
58+ </execution >
59+ </executions >
60+ </plugin >
61+ <plugin >
62+ <groupId >org.apache.maven.plugins</groupId >
63+ <artifactId >maven-compiler-plugin</artifactId >
64+ <version >3.5.1</version >
65+ <executions >
66+ <!-- Replacing default-compile as it is treated specially by maven -->
67+ <execution >
68+ <id >default-compile</id >
69+ <phase >none</phase >
70+ </execution >
71+ <!-- Replacing default-testCompile as it is treated specially by maven -->
72+ <execution >
73+ <id >default-testCompile</id >
74+ <phase >none</phase >
75+ </execution >
76+ <execution >
77+ <id >java-compile</id >
78+ <phase >compile</phase >
79+ <goals > <goal >compile</goal > </goals >
80+ </execution >
81+ <execution >
82+ <id >java-test-compile</id >
83+ <phase >test-compile</phase >
84+ <goals > <goal >testCompile</goal > </goals >
6485 </execution >
6586 </executions >
6687 </plugin >
6990
7091 <properties >
7192 <junit .version>4.12</junit .version>
72- <kotlin-test-junit .version>1.0.4</kotlin-test-junit .version>
73- <kotlin-stdlib .version>1.0.4</kotlin-stdlib .version>
74- <kotlin-maven-plugin .version>1.0.4</kotlin-maven-plugin .version>
93+ <kotlin-maven-plugin .version>1.0.6</kotlin-maven-plugin .version>
94+ <kotlin-test-junit .version>1.0.6</kotlin-test-junit .version>
95+ <kotlin-stdlib .version>1.0.6</kotlin-stdlib .version>
96+ <kotlin-maven-plugin .version>1.0.6</kotlin-maven-plugin .version>
7597 </properties >
7698
7799</project >
0 commit comments