#589 - Attach Kotlin source dir to source code artifact.

Added Build Helper Maven plugin to add Kotlin source directory to set of source directories so it's then picked up by the Maven Source Plugin and packed into source code artifact.

Original pull request: #588.
This commit is contained in:
Nikolay Rybak
2018-07-02 13:38:56 +03:00
committed by Oliver Gierke
parent a2dbd23dbc
commit 256ed64e49

View File

@@ -949,6 +949,25 @@
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-kotlin-source</id>
<phase>prepare-package</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.basedir}/src/main/kotlin</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>