Skip to content

Commit 6e7d8ab

Browse files
authored
backport: build-helper-maven-plugin to attach kotlin sources (#822)
1 parent bad1ae4 commit 6e7d8ab

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,25 @@
264264
</execution>
265265
</executions>
266266
</plugin>
267+
268+
<!-- add kotlin sources for the maven-source-plugin (need this for mixed java/kotlin sources) -->
269+
<plugin>
270+
<groupId>org.codehaus.mojo</groupId>
271+
<artifactId>build-helper-maven-plugin</artifactId>
272+
<executions>
273+
<execution>
274+
<phase>generate-sources</phase>
275+
<goals>
276+
<goal>add-source</goal>
277+
</goals>
278+
<configuration>
279+
<sources>
280+
<source>src/main/kotlin</source>
281+
</sources>
282+
</configuration>
283+
</execution>
284+
</executions>
285+
</plugin>
267286
</plugins>
268287
</build>
269288

0 commit comments

Comments
 (0)